Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 May 2005 at 03:13 UTC
Updated:
18 Sep 2005 at 19:59 UTC
Jump to comment: Most recent file
The display from the admin/node page is not sorted by anything. This is confusing.
In order to make the display make sense, I recommend sorting it by the date of last change.
Here is a patch for doing this. Line 912 of node.module in 4.6:
$result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where, 50, 0, NULL, $args);
Should be:
$result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where . " ORDER BY n.changed DESC ", 50, 0, NULL, $args);
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | node.module-admin_node_not_sorted.patch.txt | 709 bytes | kbahey |
Comments
Comment #1
Bèr Kessels commentedKbahey, cuold you make this into a real patch? that way it fits within Drupals workflow. It is very hard for most people to edit modules based on some vague descriptions with some code.
A patch, on the other side can be made undone very easy, it can be saved, it just works much better. However, it may be that you did not know how to make a patch. in that case, you might want to look here: http://drupal.org/repos
Comment #2
zach harkey commentedThis is very badly needed. I couldn't believe the list was in no particular order with no way to sort the whole list by date etc. This really blew the usefulness of this whole page imo. Thank you fo the patch.
Comment #3
kbahey commentedBer.
I know how to make a patch, but this seemed so trivial that it did not warrant one.
Anyway, here it is.
Comment #4
ec commentedkbahey, thanks for this enhancement, it's very nice and it was obviously missing. But your patch is in reverse order ;-). here is the right one. regards, eric.
Comment #5
ec commentedkbahey, thanks for this enhancement, it's very nice and it was obviously missing. But your patch is in reverse order ;-). here is the right one. regards, eric.
Comment #6
ec commentedsorry, drupal don't want my file, I try again for the last time. If I don't succeed, be carefull don't use the patch above, instead make the change by hand ! eric.
Comment #7
kbahey commentedHere is the correct patch. Thanks for pointing out that it is reversed.
Comment #8
kbahey commentedIt seems that I can't upload a patch either.
Comment #9
kbahey commentedAttempt to upload correct patch
Comment #10
kbahey commentedHere is the corrected patch. I am trying to attach it but it fails. I filed a site error report.
Comment #11
Bèr Kessels commented+1 A simple fix, that makes the screen behave like one would expect again. great usability improvement with this one line patch.
Comment #12
Uwe Hermann commentedThis is fixed in CVS, the line reads
$result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where .' ORDER BY n.changed DESC', 50, 0, NULL, $args);.Comment #13
(not verified) commentedComment #14
(not verified) commentedComment #15
(not verified) commented