OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
633f026
)
可能な限り#keyPathを使うように変更
author
masakih
<masakih@users.sourceforge.jp>
Sun, 8 Oct 2017 04:26:46 +0000
(13:26 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Sun, 8 Oct 2017 04:26:46 +0000
(13:26 +0900)
KCD/ServerDataStore.swift
patch
|
blob
|
history
diff --git
a/KCD/ServerDataStore.swift
b/KCD/ServerDataStore.swift
index
9370348
..
33d7a5d
100644
(file)
--- a/
KCD/ServerDataStore.swift
+++ b/
KCD/ServerDataStore.swift
@@
-76,7
+76,7
@@
extension ServerDataStore {
func decksSortedById() -> [Deck] {
- let sortDec = NSSortDescriptor(key:
"id"
, ascending: true)
+ let sortDec = NSSortDescriptor(key:
#keyPath(Deck.id)
, ascending: true)
guard let decks = try? objects(of: Deck.entity, sortDescriptors: [sortDec]) else { return [] }