//This will sort your array
function SortByName(a, b){
var aName = a.name.toLowerCase();
var bName = b.name.toLowerCase();
return ((aName < bName) ? -1 : ((aName > bName) ? 1 : 0));
}
array.sort(SortByName);
More Related Contents:
- Sorting array of object based on range of Numbers of String [closed]
- How may I sort a list alphabetically using jQuery?
- Sort Array Elements (string with numbers), natural sort
- How to sort 2 dimensional array by column value?
- Sort mixed alpha/numeric array
- Sorting options elements alphabetically using jQuery
- Sort an array by the “Levenshtein Distance” with best performance in Javascript
- Convert simple array into two-dimensional array (matrix)
- What is the most efficient way to sort an Html Select’s Options by value, while preserving the currently selected item?
- Sort an html list with javascript
- javascript sort of HTML elements
- jQuery sort elements using data id
- Sorting of jqGrid (v4.1.2) treegrid not working with Ajacency Model
- Disable sorting for a particular column in jQuery DataTables
- Sorting an Array of JavaScript Objects a Specific Order (using existing function)
- Sort a table fast by its first column with Javascript or jQuery
- How does one sort a multi dimensional array by multiple columns in JavaScript?
- jQuery Data vs Attr?
- jQuery ID selector works only for the first element
- How can I check if a background image is loaded?
- Cross-browser multi-line text overflow with ellipsis appended within a fixed width and height
- Persisting the changes of range objects after selection in HTML
- Show and hide divs at a specific time interval using jQuery
- Capture keys typed on android virtual keyboard using javascript
- Dropzone Submit Button on Upload
- Add a transform value to the current transforms that are already on the element?
- Search and Highlight in jQuery
- What is the concept of Array.map?
- How is jQuery’s $ a function and an object?
- How do I detect IE 8 with jQuery?