Fix using a global BCollator defined in BarApp.
Called static CompareByName() method in TTeamMenu instead of duplicating code, made method public.
This comes from a patch by 0xffea for GSoC 2014.
A locale aware version of NaturalCompare in WindowMenuItem.cpp is still needed.
Fixes #7712
bd6dcb3 Deskbar: item sorting is not locale-sensitive
src/apps/deskbar/BarApp.cpp | 2 ++
src/apps/deskbar/BarApp.h | 3 +++
src/apps/deskbar/ExpandoMenuBar.cpp | 11 ++---------
src/apps/deskbar/TeamMenu.cpp | 5 +++--
src/apps/deskbar/TeamMenu.h | 1 -
5 files changed, 10 insertions(+), 12 deletions(-)
Upstream: cgit.haiku-os.org