Top "Sorting" questions

Sorting is the process of applying some order to a collection of items.

How to sort a list of strings?

What is the best way of creating an alphabetically sorted list in Python?

python string sorting
How to sort an array of integers correctly

Trying to get the highest and lowest value from an array that I know will contain only integers seems to …

javascript arrays sorting numbers
How to use Comparator in Java to sort

I learned how to use the comparable but I'm having difficulty with the Comparator. I am having a error in …

java sorting comparator
How to convert a Collection to List?

I am using TreeBidiMap from the Apache Collections library. I want to sort this on the values which are doubles. …

java list sorting collections apache-commons-collection
Sorting rows in a data table

We have two columns in a DataTable, like so: COL1 COL2 Abc 5 Def 8 Ghi 3 We're trying to sort this datatable …

c# sorting datatable
Why is there no SortedList in Java?

In Java there are the SortedSet and SortedMap interfaces. Both belong to the Java Collections framework and provide a sorted …

java sorting collections
How to sort an array of associative arrays by value of a given key in PHP?

Given this array: $inventory = array( array("type"=>"fruit", "price"=>3.50), array("type"=>"milk", "price"=>2.90), array("type"=>"…

php arrays sorting multidimensional-array
Finding median of list in Python

How do you find the median of a list in Python? The list can be of any size and the …

python list sorting median
How do I sort an NSMutableArray with custom objects in it?

What I want to do seems pretty simple, but I can't find any answers on the web. I have an …

ios objective-c sorting cocoa-touch nsmutablearray
Java Array Sort descending?

Is there any EASY way to sort an array in descending order like how they have a sort in ascending …

java arrays sorting int