Created
October 30, 2014 01:00
-
-
Save idleworx/5746464915ef206a9327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getFieldsSorted(item){ | |
var fields = _.sortBy(item.fields,'order'); //using the awesome underscorejs library | |
return fields; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment