Bug 54919 - TODO: kmenuedit should export sort order
Summary: TODO: kmenuedit should export sort order
Status: RESOLVED FIXED
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 26419 32090 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-20 14:52 UTC by thomas stuefe
Modified: 2004-05-12 16:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Sorts the list (1.61 KB, patch)
2004-04-24 02:35 UTC, Fredrik Edemar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thomas stuefe 2003-02-20 14:52:11 UTC
Version:           0.4 (using KDE KDE 3.1)
Installed from:    SuSE RPMs
OS:          Linux

items in Kmenu are always aphabetically sorted, regardless of what I put in in kmenuedit
Comment 1 Brian Rectanus 2003-07-20 08:21:57 UTC
I am not sure if this is what is intended or not, but it is very annoying. 
kmenuedit should display the menu items as they would in the actual menu.  I
also do not think that alpha sort is the best here, but instead the user should
be able to specify the order (but perhaps that is not a kmenuedit problem).
Comment 2 Moritz Moeller-Herrmann 2003-08-03 12:36:13 UTC
This may be broken by the vfolder implementation, but for normal directories, you can add SortOrder 
in the .directory file. This would be the way to implement persistent ordering in kmenuedit. 
Comment 3 Fredrik Edemar 2004-04-24 02:35:16 UTC
Created attachment 5757 [details]
Sorts the list

This patch makes the items aphabetically sorted below the folders, as they are
shown in KMenu.
Comment 4 Brian Rectanus 2004-04-24 17:54:10 UTC
That patch is just ignoring the problem.  Like I stated previously, alpha sort is not the best here.  Alpha sort is OK for apps (usually), but for things like ssh-terms and custom thinks of that like, it is just annoying.  For instance, I like to have sub-folders of machine names with different ssh profiles under each.  The machines should be ordered how I have them in kmenuedit (by type - web, DB, misc) and not by alpha.  I just end up prefixing each with a number as a hack.  So, better is to just keep the order given in kmenuedit.  Perhaps using the .directory file?
Comment 5 Fredrik Edemar 2004-04-24 21:51:20 UTC
Brian Rectanus: Well, I don't know what you actually mean. My patch makes the menu-tree auto-sorted. It means that if you move or create an item the list will be sorted.

Does not KMenu show items in this way too, or is there a more sophisticated algorithm used by KMenu?
Comment 6 Brian Rectanus 2004-04-25 17:02:05 UTC
The bug is that no matter what order the menuitems are in kmenuedit, they are always sorted in kmenu.  So, kmenuedit needs to pass the order to kmenu.  We should not be limited to the list always being alph-sorted.  You patch makes kmenuedit be sorted like kmenu - this does not fix the bug, but rather just limits how kmenuedit functions (or should function).  From comment #2, it seems that you can use .directory files to pass this order?
Comment 7 Fredrik Edemar 2004-04-25 22:24:39 UTC
Ok. Now I understand. My patch fits better for bug #26419. In my opinion KMenuEdits items should be autosorted as long as Kicker sort items too. The situation now only confuse new KDE-users.
Comment 8 Waldo Bastian 2004-05-04 11:43:33 UTC
kmenuedit should follow the currently defined sort order and re-export the sort order when changes are made.
Comment 9 Waldo Bastian 2004-05-04 16:14:03 UTC
*** Bug 32090 has been marked as a duplicate of this bug. ***
Comment 10 Waldo Bastian 2004-05-04 16:17:34 UTC
*** Bug 26419 has been marked as a duplicate of this bug. ***
Comment 11 Waldo Bastian 2004-05-12 16:29:39 UTC
Fixed for KDE 3.3