Top "Sorting" questions

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

In Python, how do I iterate over a dictionary in sorted key order?

There's an existing function that ends in the following, where d is a dictionary: return d.iteritems() that returns an …

python sorting dictionary
How to sort a NSArray alphabetically?

How can I sort an array filled with [UIFont familyNames] into alphabetical order?

objective-c sorting
java Arrays.sort 2d array

I am looking to sort the following array based on the values of [][0] double[][] myArr = new double[mySize][2]; so for …

java arrays sorting matrix
Syntax behind sorted(key=lambda: ...)

I don't quite understand the syntax behind the sorted() argument: key=lambda variable: variable[0] Isn't lambda arbitrary? Why is variable …

python sorting lambda custom-function
Sort a list alphabetically

I have the following class: class Detail { public Detail() { _details = new List<string>(); } public IList<string> …

c# .net linq sorting
What is stability in sorting algorithms and why is it important?

I'm very curious, why stability is or is not important in sorting algorithms?

algorithm sorting language-agnostic stability
Best way to list files in Java, sorted by Date Modified?

I want to get a list of files in a directory, but I want to sort it such that the …

java file sorting
Android-java- How to sort a list of objects by a certain value within the object

Im trying to sort through an arraylist of objects by a particular value within the object. What would be the …

java android sorting collections comparator
How can I convert the "arguments" object to an array in JavaScript?

The arguments object in JavaScript is an odd wart—it acts just like an array in most situations, but it's …

javascript arrays sorting arguments variadic-functions
Mysql: Select rows from a table that are not in another

How to select all rows in one table that do not appear on another? Table1: +-----------+----------+------------+ | FirstName | LastName | …

mysql sorting unique database-table