Bug 1017798 - installed sort order processed alphabetically instead of chronologically
Summary: installed sort order processed alphabetically instead of chronologically
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 541
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2013-10-10 14:16 UTC by Charles Slivkoff
Modified: 2015-07-09 13:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-09 13:48:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Charles Slivkoff 2013-10-10 14:16:20 UTC
Description of problem:

When selecting to sort the RPM package list for a system, the installation dates are processed alphabetically. It would be expected for the sort order bo be chronological.
 
Version-Release number of selected component (if applicable):

5.4.1

How reproducible:

Always.

Steps to Reproduce:
1. Select a system.
2. Select "Software"
3. Select "Packages"
4. Select "List/Remove"
5. Select "Installed"

Actual results:

Installation dates are sorted alphabetically (either ascending or decending).


Expected results:

Installation order should be presented chronologically.


Workaround:

On the client, use "rpm -qa --queryformat" to display the date, then post-process that to convert the unix timestamp to a user-preferred format.

rpm -qa --queryformat "%{INSTALLTIME} %{NAME}\n"  | sort -n | awk '{print strftime("%Y-%m-%dT%H:%M:%S",$1),$2;}'

Comment 1 Tomas Lestach 2015-07-09 13:48:01 UTC
This has been fixed in upstream back in 2011. See Bug 722453 for more details.
The fix is available in Satellite 5.5 and newer. As Satellite 5.4 was EOLed, I'm closing this BZ.


Note You need to log in before you can comment on or make changes to this bug.