Skip to content

Commit 71122f9

Browse files
committed
Order coupons by created date descending
1 parent fb1ed2e commit 71122f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Coupons/CouponManagementListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ final class CouponListViewModel {
7070
storageManager: StorageManagerType) -> ResultsController<StorageCoupon> {
7171
let predicate = NSPredicate(format: "siteID == %lld", siteID)
7272
let descriptor = NSSortDescriptor(keyPath: \StorageCoupon.dateCreated,
73-
ascending: true)
73+
ascending: false)
7474

7575
return ResultsController<StorageCoupon>(storageManager: storageManager,
7676
matching: predicate,

0 commit comments

Comments
 (0)