Fix simple sorting