SessionCtl // Stable-sort the lookup results.
This commit is contained in:
parent
7a4aa38df5
commit
714632e1c8
|
@ -63,7 +63,7 @@ extension SessionCtl: CtlCandidateDelegate {
|
|||
if value.isEmpty { return "" } // 空字串沒有需要反查的東西。
|
||||
if value.contains("_") { return "" }
|
||||
guard let lookupResult = LMMgr.currentLM.currentCassette.reverseLookupMap[value] else { return "" }
|
||||
return lookupResult.joined(separator: " ")
|
||||
return lookupResult.stableSort(by: { $0.count < $1.count }).joined(separator: " ")
|
||||
}
|
||||
|
||||
public var selectionKeys: String {
|
||||
|
|
Loading…
Reference in New Issue