| 
														
															@@ -147,6 +147,7 @@ func (this *Shop) load() *Shop { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shop_products.active = 1 AND 
														 | 
														
														 | 
														
															 			shop_products.active = 1 AND 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shop_products.parent_id IS NULL 
														 | 
														
														 | 
														
															 			shop_products.parent_id IS NULL 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		ORDER BY 
														 | 
														
														 | 
														
															 		ORDER BY 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			shop_products.quantity DESC, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shop_products.id DESC 
														 | 
														
														 | 
														
															 			shop_products.id DESC 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		LIMIT ?, ?; 
														 | 
														
														 | 
														
															 		LIMIT ?, ?; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	` 
														 | 
														
														 | 
														
															 	` 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -303,6 +304,7 @@ func (this *Shop) load() *Shop { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				shop_products.id, 
														 | 
														
														 | 
														
															 				shop_products.id, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				cats.parent_id 
														 | 
														
														 | 
														
															 				cats.parent_id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			ORDER BY 
														 | 
														
														 | 
														
															 			ORDER BY 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				shop_products.quantity DESC, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				shop_products.id DESC 
														 | 
														
														 | 
														
															 				shop_products.id DESC 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			LIMIT ?, ?; 
														 | 
														
														 | 
														
															 			LIMIT ?, ?; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		` 
														 | 
														
														 | 
														
															 		` 
														 |