Made sorting work.