adjust sorting
added sorting