sort auto-completed items