• Andrew Fontaine's avatar
    Sort Environments in Table by Last Updated · fa882a67
    Andrew Fontaine authored
    Ensure folders push to the top, if both have no last update, sort by
    name.
    
    The sorting algorithm should sort in the following priorities:
    
    1. folders first,
    2. last updated descending,
    3. by name ascending,
    
    the sorting algorithm must:
    
    1. Sort by name ascending,
    2. Reverse (sort by name descending),
    3. Sort by last deployment ascending,
    4. Reverse (last deployment descending, name ascending),
    5. Put folders first.
    
    It is done this way, as `underscore`'s sort API is very basic: simple
    comparisons, sorting by ascending only.
    fa882a67
environments_table.vue 3.59 KB