Top "Sorted" questions

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

How to get indices of a sorted array in Python

I have a numerical list: myList = [1, 2, 3, 100, 5] Now if I sort this list to obtain [1, 2, 3, 5, 100]. What I want is the indices …

python indexing sorted
Insert an item into sorted list in Python

I'm creating a class where one of the methods inserts a new item into the sorted list. The item is …

python list sorted
Sorted array list in Java

I'm baffled that I can't find a quick answer to this. I'm essentially looking for a datastructure in Java which …

java data-structures sorted
C++ Calculating the Mode of a Sorted Array

I have to write a C++ code that finds the median and mode of an array. I'm told that it's …

c++ arrays mode sorted
JPA/hibernate sorted collection @OrderBy vs @Sort

I would like to have a collection of child objects (here cat-kitten example) that are ordered. And keep their order …

hibernate jpa collections sql-order-by sorted
Creating new String with sorted letters from a String word in Java

How do I create a String with alphabetical order letters taken from another String? Let's say I have something like …

java string character alphabetical sorted
Is python's sorted() function guaranteed to be stable?

The documentation doesn't guarantee that. Is there any other place that it is documented? I'm guessing it might be stable …

python sorted stable-sort
Sort list of strings alphabetically

So i have a question, how can i sort this list: ['Pera','mela','arancia','UVA'] to be like this: ['arancia',…

python list sorted cmp alphabetical-sort
How to properly use SortedDictionary in c#?

I'm trying to do something very simple but it seems that I don't understand SortedDictionary. What I'm trying to do …

c# dictionary sorted sorteddictionary
JavaFX: TableView: Arrow for a column sorted by default

I have a simple java fx application which has a table view. The table view shows some data that is …

javafx-2 tableview sorted tablecolumn