Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Sort Listview with doubles

[Image: NkrqeDe.png]

Anybody knows how to sort these asc/desc?

Tried it but couldn't find a good solution to sort it.
I have not used this personally, but maybe you can use this:
https://msdn.microsoft.com/en-us/library...rting.aspx
This will put items that are added in the correct spot, not sort existing items.
(Mar 21, 2018 04:55 PM)Ninja Wrote:  I have not used this personally, but maybe you can use this:
https://msdn.microsoft.com/en-us/library...rting.aspx
This will put items that are added in the correct spot, not sort existing items.

Is it even possible to make that work with doubles? i thought it would only work with strings.
(Mar 21, 2018 11:19 PM)Soldiercrimes Wrote:  Is it even possible to make that work with doubles? i thought it would only work with strings.

Why not just try it? Also, on the page it said that if you want to use your own sorting then you should use the ListViewItemSorter in combination with the Sort method:
https://msdn.microsoft.com/en-us/library...orter.aspx
https://msdn.microsoft.com/en-us/library....sort.aspx


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by markzuckerbergJun 4, 2018 01:57 PM 17 369 Jun 4, 2018 01:57 PM
Last Post: markzuckerberg
[C] by SigmaMay 2, 2017 03:54 PM 7 180 May 2, 2017 03:54 PM
Last Post: Sigma
[C#] by SIM-1809171Sep 4, 2015 03:45 PM 6 162 Sep 4, 2015 03:45 PM
Last Post: SIM-1809171