adding sorting for store