6 Answered Questions for the topic sorting

Sort a double dimensional array in java using scanner class.

Ex: Original Matrix 11 -2 3 5 16 7 9 0 4 3 1 8 Sorted array 16 11 9 8 7 5 4 3 3 1 0 -2

Selective Sorting algorithm in assembly language

a) Calculating the average value of array elements and assigning it to the variable avg,b) Write the code that implements the Selective Sorting algorithm in assembly language (emu 8086) with the... more


How do I sort a list of dictionaries by a value of the dictionary?

I have a list of dictionaries and want each item to be sorted by a specific property values.Take into consideration the array below, [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]When... more
Sorting Sas Sorted


Sorting an almost sorted dataset in SAS?

I have a large dataset in SAS which I know is almost sorted; I know the first and second levels are sorted, but the third level is not. Furthermore, the first and second levels contain a large... more
Sorting Python Dictionary


How can I sort a dictionary by key?

What would be a nice way to go from `{2:3, 1:89, 4:5, 3:0}` to `{1:89, 2:3, 3:0, 4:5}`? I checked some posts but they all use the "sorted" operator that returns tuples.
Sorting Sas Duplicates


How to remove duplicated records\\observations WITHOUT sorting in SAS?

I wonder if there is a way to unduplicate records **WITHOUT** sorting?Sometimes, I want to keep original order and just want to remove duplicated records. Is it possible? BTW, below are what I... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.