Skip to content

Instantly share code, notes, and snippets.

@Samsinite
Created July 6, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Samsinite/47e3de5d97056d462f42 to your computer and use it in GitHub Desktop.
Save Samsinite/47e3de5d97056d462f42 to your computer and use it in GitHub Desktop.
Ember sortable array proxy
import Ember from 'ember';
var SortableArrayProxy = Ember.ArrayProxy.extend(Ember.SortableMixin);
export function createSortableArray(arrayToProxy, sortProperties, sortAscending) {
return SortableArrayProxy.create({
content: arrayToProxy,
sortProperties: sortProperties,
sortAscending: sortAscending
});
}
export default SortableArrayProxy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment