zoidy / walkmanmtp

Automatically exported from code.google.com/p/walkmanmtp
0 stars 0 forks source link

need to be able to sort files in the treeview and listview #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Implement ability to sort files in the tree by file name a specific subnode
or sort the whole tree.  Implement the ability to sort all entries, or a
specific subset of entries in listviews ascending or descending

Original issue reported on code.google.com by rios.fer...@gmail.com on 18 Apr 2008 at 12:49

GoogleCodeExporter commented 9 years ago
This could be done populating an array with references to the selected items, 
sorting
them using Text property (maybe Array.Sort could do the trick), then removing 
the
items from tree/listview, and re-adding them in the right order. This assumed 
you
can't sort directly a Collection (eg. ListView.SelectedItems) or change the 
index
inside the Collection in some other way, which would be the easiest path..

Original comment by pog...@gmail.com on 18 Apr 2008 at 4:31

GoogleCodeExporter commented 9 years ago
I haven't really looked into this yet.  I don't anticipate it will be too hard. 
 The
sorting should be invoked via a right-click menu I think.

Original comment by rios.fer...@gmail.com on 19 Apr 2008 at 3:33

GoogleCodeExporter commented 9 years ago
yes i guess it's the most natural way to do it... but it would only reflect on 
wmtp's
internal listviews, wouldn't it? it would only be a matter of sorting a 
collection of
nodes, i mean

Original comment by pog...@gmail.com on 19 Apr 2008 at 9:01

GoogleCodeExporter commented 9 years ago
can now sort listviews.  Still need to do treeviews

Original comment by rios.fer...@gmail.com on 20 Apr 2008 at 4:38

GoogleCodeExporter commented 9 years ago
Done v0.3.2 r13. Treeview is sorted on load, but I don't think it would be that
useful to put in the work just to be able to sort just a specific node

Original comment by rios.fer...@gmail.com on 21 Apr 2008 at 2:31