format-reorder

format-reorder is a compiled Lisp function in `format.el'.

(format-reorder ITEMS ORDER)

Arrange ITEMS to follow partial ORDER.
Elements of ITEMS equal to elements of ORDER will be rearranged
to follow the ORDER. Unmatched items will go last.