Code Monkey home page Code Monkey logo

Comments (5)

enkore avatar enkore commented on September 28, 2024

Can't reproduce - we use std::map which orders lexicographically already.

Maybe your locale is not set correctly?

from j4-dmenu-desktop.

bebehei avatar bebehei commented on September 28, 2024

Sorry, I'm using an exotic combination of German/English mix. Metrics are in German Standards and Language is english. Here is my setup:

[bebe:~] % printenv | grep LC
LC_NUMERIC=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_CTYPE=en_US.utf8
[bebe:~] % printenv | grep LANG
LANG=en_US.utf8
GDM_LANG=en_US.utf8

I don't believe the locale matters directly.

When I execute the command j4-dmenu-desktop --dmenu='tee tmp | dmenu'. This is the head of tmp:

CMake
CaesarIA
Counter-Strike: Global Offensive
Counter-Strike: Source
Goat Simulator
OBEY
Portal 2
Robocraft
Team Fortress 2
Afternoon Stalker

This is completely unsorted. How can this be?

from j4-dmenu-desktop.

enkore avatar enkore commented on September 28, 2024

Turns out I am kind of dumb with my comment above. Yes, that map is ordered (of course), but I didn't remember that the key is the file name, not the application name. I just never noticed this, because on my system the first 20+ app files appear sorted correctly. Also it never shows in using it, unless you have two different Firefox'es :)

Oh, and to put the cherry on the cake: the apps should be now sorted correctly taking locale into account. So âÀüß and friends should be at the right spots.

from j4-dmenu-desktop.

bebehei avatar bebehei commented on September 28, 2024

πŸ‘ This works. Thank you! Could you please tag a release, too?

from j4-dmenu-desktop.

enkore avatar enkore commented on September 28, 2024

Done.

Note: Some items are seemingly not sorted - it's the GenericNames. They're output directly after the Name, so they will appear out of place compared with a output that's completely sorted.

from j4-dmenu-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.