[bug #18767] Panel sort order: fallback to name

2007-01-15 Thread Egmont Koblinger

Follow-up Comment #4, bug #18767 (project mc):

Thanks for the patch.

I know about ls -U, but I think the audience of ls and mc might be a
little bit different. For the ls command it might be considered as a
filesystem debug option, or an option that can speed up scripts where the
order isn't important and there are a lot of files in a directory, or ls is
invoked many times. MC is rather a user-oriented, interactive application
with much more overhead (e.g. always stat()s all the files) which implies
that a little bit of extra overhead (sorting) is not a big issue, and it's
definitely faster if mc sorts the filenames than if the user finds the
requested file in an unsorted list. And I don't think anyone interested in
the filesystem order would use mc, they'd use ls. Anyway, it's not an
important issue at all, I was just interested in others' opinions. Of course
I don't mind if this option remains there, even though I can't see use of
it.


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18767] Panel sort order: fallback to name

2007-01-15 Thread Pavel Tsekov

Update of bug #18767 (project mc):

  Status:None = Fixed  
 Open/Closed:Open = Closed 

___

Follow-up Comment #5:

Well, the guy who posted the bug report below seemed to use the Unsorted
mode:

  http://savannah.gnu.org/bugs/?func=detailitemitem_id=13549

Maybe, there are others too. As for myself - I never used it but still I
don't mind it. However if you want to discuss the Unsorted mode, please, open
a new bugreport. I am closing this one now.


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18767] Panel sort order: fallback to name

2007-01-13 Thread Pavel Tsekov

Follow-up Comment #1, bug #18767 (project mc):

I don't know if the Unsorted view make sense but I know that the GNU 'ls'
has a -U option which is supposed to print unsorted entries. 


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18767] Panel sort order: fallback to name

2007-01-13 Thread Pavel Tsekov

Follow-up Comment #2, bug #18767 (project mc):

Egmont, I've just verified that GNU ls does what you suggest in the 
situation described below. I'll apply a patch soon.


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18767] Panel sort order: fallback to name

2007-01-13 Thread Pavel Tsekov

Follow-up Comment #3, bug #18767 (project mc):

I've commited a patch:
http://cvs.sv.gnu.org/viewcvs/mc/mc/src/dir.c?sortby=dater2=1.67r1=1.66diff_format=u


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18767] Panel sort order: fallback to name

2007-01-12 Thread Egmont Koblinger

URL:
  http://savannah.gnu.org/bugs/?18767

 Summary: Panel sort order: fallback to name
 Project: GNU Midnight Commander
Submitted by: egmont
Submitted on: Friday 01/12/2007 at 14:49
Category: None
Severity: 3 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
 Release: current (CVS or snapshot)
Operating System: GNU/Linux

___

Details:

When sorting by a property that can be the same for different files (e.g.
file size), files having the same value are sorted strangely.

When you just change the sorting method from name to e.g. size, files of the
same size remain sorted by name. If you change directory, or simply press ^R
to reload the panel, these files will be sorted randomly (in fact I guess in
file system order). So a simple ^R changes the order, even though nothing
changed on the file system. This is quite strange, and IMHO not the expected
behavior.

IMHO sorting should always fallback to name, when their size/date/whatever is
the same.

PS. Does the Unsorted (file system order) option has any meaning in
practice? I don't think so.





___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18767

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel