persistence sorting work