Bug 437217

Summary: yast2-ncurses-pkg: sort by size
Product: [openSUSE] openSUSE 11.1 Reporter: Ludwig Nussel <lnussel>
Component: YaST2Assignee: Gabriele Mohr <gs>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P4 - Low    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screen-shot of the table before sorting

Description Ludwig Nussel 2008-10-21 08:56:22 UTC
yast2-ncurses-pkg lacks a feature to sort the displayed packages by size. That is useful to identify the worst offenders if the installation is too big.
Comment 1 Katarina Machalkova 2008-10-21 13:43:01 UTC
Heh :) Actually, you can sort any YaST ncurses table by pressing CTRL-O and selecting the sorting column of the table then. 
Due to some past issues (which I don't and can't remember) sorting has been disabled for ncurses package table - bug #143085. But as complete UI backend has been rewritten in a way it is not an issue now, it should be easy to fix

Low priority, though (it means I'm going to deal with it next time y2-storage starts to get on my nerves)
Comment 2 Katarina Machalkova 2008-11-21 16:08:55 UTC
This is done in yast2-ncurses-pk 2.17.11. Just press Ctrl-O over the table and pick any sort column from the popup.
Comment 3 Katarina Machalkova 2008-11-21 16:10:49 UTC
Created attachment 254419 [details]
Screen-shot of the table before sorting
Comment 4 Katarina Machalkova 2008-11-21 17:00:49 UTC
Argh, but ncurses UI is really stupid, it sorts the cell data as strings only, so it can happen that 1.0 M < 2.0 K, for example
Leaving the bug open, looking for some better approach.
Comment 6 Gabriele Mohr 2009-05-27 10:29:34 UTC
Sorting the package table by size works correctly now (yast2-ncurses-pkg-2.18.3).
The possibility to set a table sort strategy is added to NCTablePad (available with yast2-ncurses-2.18.9) and NCPkgTable sets a strategy which sorts the "Size" column by install size.