Adding sorting for catalog