0

I have such question: I have 2 collections (Dishes and Categories). I have backend method that returns me JSON with Dish by Category. How to make sorting of my data in HTML in such way - on click Category button i

1 Answers1

0

Like this? Sorting a Backbone Collection After initialization

"have your own method that calls the Collection's sortBy method and then triggers a custom event that your View can listen to."

Community
  • 1
  • 1
Mark Kasson
  • 1,600
  • 1
  • 15
  • 28