Experimenting with Ascending and Descending sorting in Angular JS using Strings
Check out the Plunker The select box offers two choices: Ascending
and Descending
If Ascending
is selected, the grid should display values with Importance in the order of L-M-H
, which represents Low-Medium-High
. If Descending
is chosen, it should be displayed as H-M-L
.
I've posted similar questions before but I'm still unclear about sorting and filtering in Angular JS.
UPDATE
I've managed to sort the contents in the correct order for part of the solution.
Check out this Stack Question
Here, I've included a dropdown for selection. The dropdown also has options for Ascending
and Descending
that I'm currently investigating.