reorder functions to match lexical order