Skip to content

Commit

Permalink
Move # section to end of AZ list (PLAYRTS-5499) (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby authored Apr 16, 2024
1 parent 7cd4a24 commit b15bb4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Application/Sources/Helpers/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ extension Collection {
return "#"
}
}
return dictionary.sorted { $0.key < $1.key }
let hashGroup = dictionary["#"]
return dictionary
.filter { $0.key != "#" }
.sorted { $0.key < $1.key }
.appending(contentsOf: hashGroup.map { [(Character("#"), $0)] } ?? [])
}
}

Expand Down

0 comments on commit b15bb4c

Please sign in to comment.