added nice sorting