Comments (5)
Can't reproduce - we use std::map which orders lexicographically already.
Maybe your locale is not set correctly?
from j4-dmenu-desktop.
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.
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.
from j4-dmenu-desktop.
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)
- Performance: The inbuilt replace function can be improve HOT 1
- Start multiple processes as children of a single j4-dmenu-desktop HOT 6
- zsh: bad pattern error on app open HOT 2
- Debian testing (bullseye) HOT 2
- Honor $XDG_DATA_DIRS HOT 2
- Is there a way to sort entries by frequency? HOT 1
- unable to escape the command correctly for dmenu HOT 3
- Configure text shown in dmenu HOT 1
- Error when building makepkg -si:
- Passing --dmenu removes .desktop applications from results HOT 2
- j4-dmenu-desktop + dmenu works but does not show on screen HOT 4
- Options to configure font and colors HOT 3
- How can I show command names instead of desktop entry names? HOT 5
- J4dd leaves zombies behind when using --wait-on HOT 1
- Cannot compile j4-dmenu-desktop due to CMake Error HOT 2
- Add tag to application names to find them faster HOT 3
- Can you change the font size? HOT 4
- Cannot open display error HOT 4
- Shell processes left in the background HOT 2
- Sorting by display name case insensitively HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from j4-dmenu-desktop.