Bug 193001 - Package and repository lists should be sorted alphabetically
Summary: Package and repository lists should be sorted alphabetically
Status: RESOLVED FIXED
Alias: None
Product: kpackagekit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Steven M. Parrish
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-17 14:07 UTC by Robin Green
Modified: 2010-08-18 23:25 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.6.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green 2009-05-17 14:07:56 UTC
Version:           0.4.0 (using KDE 4.2.2)
OS:                Linux
Installed from:    Fedora RPMs

It would be helpful if lists of packages and lists of repositories could be sorted alphabetically by name. This would group similar packages and repositories together visually, making them easier to work with.
Comment 1 Daniel Nicoletti 2009-06-02 16:45:55 UTC
The package sorting is already available in 0.4.0,
i'll try to add it to repositories view in 0.4.1 too.
Thanks,
Daniel.
Comment 2 Robin Green 2009-06-02 20:40:52 UTC
(In reply to comment #1)
> The package sorting is already available in 0.4.0

I was not able to get it to work - how is it supposed to work?
Comment 3 Daniel Nicoletti 2009-06-02 23:23:36 UTC
hmm well the updates ui might not have it, but i'm pretty sure there is a header named "packages" which can do sorting...
Comment 4 Oliver Henshaw 2009-07-09 16:54:08 UTC
The package header works once you discover it. But would it make sense if sorting was done by default?
Comment 5 Daniel Nicoletti 2009-07-13 14:36:13 UTC
Well actually it makes sense for your backend to give us the sorted list
as I do in AptCC, It's much faster to do that in the backend.
I'd ask you to complain to your distribution backend.
Thanks.
Comment 6 Richard Hughes 2009-07-15 17:19:56 UTC
(In reply to comment #5)
> Well actually it makes sense for your backend to give us the sorted list
> as I do in AptCC, It's much faster to do that in the backend.
> I'd ask you to complain to your distribution backend.
> Thanks.

I'm sorry, but that's completely wrong. There's no way the backend can know whether the user is sorting by package name, summary text or even package size.

There is no guarantee in the API that there is any sorting applied, except that installed packages should come first.
Comment 7 Daniel Nicoletti 2009-07-15 19:11:48 UTC
Richard, i know there is no such guarantee, but imo it would be better to sort by package name  right on the backend. gpk works much better when aptcc emits sorted packages, because gpk doesn't need to keep changing the package order.
After all packages are there the user can sort packages.
Imo sorting the packages while they are arriving makes the ui too weird.
Comment 8 Philip Muškovac 2009-11-22 00:00:39 UTC
Would it be possible to at least sort by the last applied sort option? Right now the gui is confusing since the sort triange at the 'package' header indicating the sort direction is always there but the packages appear unsorted after a search.

See https://bugs.launchpad.net/ubuntu/+source/kpackagekit/+bug/440610
Comment 9 Daniel Nicoletti 2010-08-18 23:25:08 UTC
Thanks for the bug report KPackageKit 0.6.1 does dynamically sort
the packages and updates,
and the Origns List is also sortable, commit in:
http://websvn.kde.org/?view=revision&revision=1165325