yarindeoh/safe-home-haytiSham

When requesting for stories by tags - sort the tags inside the results

Opened this issue · 2 comments

When we request stories by specific tags on filter,
on every story on the results, sort their tags by the requested tags order.
For instance, when asking a filter for אלימות כלכלכית, אלימות מינית
on every entry for the results return their tags sorted with אלימות כלכלית, אלימות מינית
first
(it looks better when filtering and helps to understand what's going on)

What is the order of the tags? ABC?

@orlylev - well I actually didn't specify an ordering for the tags - I guess the default order is the one the moderators gave when you inserted it into the db in the first place.
But I meant that if I'm asking by specific tags - the tags in each result should be sorted by showing the ones I've asked first - same sorting as the user asked for.
For instance - for [1,5,2] --> return sorted with [1,5,2, all the rest sorted by the default order]