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]. 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.
