diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-15 16:57:40 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-15 16:57:40 +0700 |
| commit | e03019b506260bcf1cb2b8d441b566fe568c6f6f (patch) | |
| tree | aab63b172e649975e05d26aee941189e29d2eb32 /src/pages | |
| parent | da8855a76c75d16cfa508164b8a73fd3be19ce12 (diff) | |
<Miqdad> ketinggalan
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/api/shop/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index cb418cf6..3d258a97 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -90,7 +90,8 @@ export default async function handler(req, res) { ]; if (orderBy === 'stock') { - filterQueries.push('stock_total_f:{1 TO *}'); + filterQueries.push('stock_total_f:{1 TO *}&sort=stock_total_f desc'); + // filterQueries.push(`stock_total_f DESC`) } if (fq && source != 'similar' && typeof fq != 'string') { |
