Bug to do with sorting.