Showing posts with label sorting. Show all posts
Showing posts with label sorting. Show all posts

Monday, June 11, 2012

How to sort a NSArray alphabetically?


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

PHP sort multidimensional array by value


How can I sort this array by the value of the "order" key? Even though the values are currently sequential, they will not always be.

Tuesday, June 5, 2012

C# List<> OrderBy Alphabetical Order


I'm using C# on Framework 3.5. I'm looking to quickly sort a Generic List<>. For the sake of this example lets say I have a List of a Person type with a property of lastname. How would I sort this List using a lambda expression?

Sunday, May 27, 2012

How to 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 NSMutableArray of objects, let's say they are 'Person' objects. I want to sort the NSMutable array by Person.birthDate which is an NSDate.

Wednesday, May 16, 2012

An intuitive understanding of heapsort?


At school we are currently learning sorting algorithms in Java and I got for my homework the Heap Sort. I did my reading, I tried to find out as much as I could, but it seems I just can't grasp the concept.

Sorting a linked list in Java


I have written a bubble sort algorithm to sort a linked list. I am a Java beginner and trying to learn data structures. I am confused why my second element is not sorted properly.

Thursday, May 10, 2012

sorting a php array alphanumerically


I know there are natsort() and natcasesort() functions in php to sort array elements in natural order. I am trying to sort the following items.

Thursday, May 3, 2012

How to sort an array of objects with jquery or javascript


I have an array of objects:




var array = [(id, name, value),(id, name, value)]; //and so on

Sorting strings in reverse order with backbone.js


I'm trying to sort a Backbone.js collection in reverse order. There are previous replies on how to do this with integers, but none with strings.