Adding simple sorting.