Can't you just do:
<thing ng-repeat='thing in my_sort_routine(data_i_want)'>

Then you can sort your array and return it.

I'm not so hot at angular yet so I'm not sure.

Tobih

On 07/22/2014 11:49 AM, Chris Dieringer wrote:
Cool, thanks Tobias.  I ended up writing a sort comparator function that is 
flexible to handle many cases where numbers will be in unpredictable places in 
the string.  Some examples shared below. *Trouble is*, this sort function is 
intended for use with native js String.sort().  How would I wire up my new 
sort() mechanism with a repeat directive who is repeating over an a string 
property of objects?

My super sort function and test data!
http://jsfiddle.net/cdaringe/LfHPT/


  * Week 30
  * Week 5
  * Week 3

==>

  * Week 3
  * Week 5
  * Week 30

AND

  * 27str
  * 2str
  * 22str

==>

  * 2str
  * 22str
  * 27str

--
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 
[email protected] 
<mailto:[email protected]>.
To post to this group, send email to [email protected] 
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to