finally fix the app sorting