reorder functions in source code