- Cataloghi
- Import ed Export Pagine - ObjectID sostituita con ObjectId
This commit is contained in:
@@ -426,12 +426,12 @@ export default defineComponent({
|
||||
if (sort === costanti.SORT_PUBDATE) {
|
||||
|
||||
arrprod = arrprod.sort((a: IProduct, b: IProduct) => {
|
||||
return b.productInfo.date_publishing_ts - a.productInfo.date_publishing_ts
|
||||
return b.productInfo.date_pub_ts - a.productInfo.date_pub_ts
|
||||
})
|
||||
} else if (sort === costanti.SORT_BESTSELLER) {
|
||||
|
||||
arrprod = arrprod.sort((a: IProduct, b: IProduct) => {
|
||||
return b.productInfo.rank1Y! - a.productInfo.rank1Y!
|
||||
return b.productInfo.rank3M! - a.productInfo.rank3M!
|
||||
})
|
||||
|
||||
arrprod = arrprod.map((product, index) => {
|
||||
|
||||
Reference in New Issue
Block a user