AngularJS directive that provides a simple and elegant sorting mechanism