Sorting for store