fix route sorting