Move alphabetically order logic to application_helper