Skip to content

Commit

Permalink
fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonCat4012 committed Feb 4, 2024
1 parent 389f6c4 commit 37290d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VGApp/Util/CoreData/CoreData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct CoreData {
}
if items.allObjects.isEmpty { return []}

return (items.allObjects as! [Item]).sorted(by: {$0.name < $1.name})
return (items.allObjects as! [Item]).sorted(by: {$0.name.lowercased() < $1.name.lowercased()})
}

static func addRecycle(_ list: ShoppingList, type: RecycleTypes) {
Expand Down

0 comments on commit 37290d0

Please sign in to comment.