seanprashad/leetcode-patterns

SortBy Company field should consider company filter

vrajeshkanna opened this issue · 4 comments

When sorting the data by the company field, the sorting should be based on the frequency of the selected company in the filter. For example, if "Facebook" is selected in the filter, the sorting should be based on the frequency of questions related to Facebook under the company field.

image

On applying company based filter we get questions filtered on company basis, How do we define frequency related to particular company e.g. facebook given in above example?

How do we define frequency related to particular company e.g. facebook given in above example?

Once questions have been filtered by a company, you can left click on the Companies column header to sort by ascending/descending in terms of total company count. In other words, questions that have been asked by 10 different companies will appear higher up than questions asked by 3 different companies. The individual company count is pulled directly from Leetcode on a weekly-basis.

What is the functionality requirement that we are looking for in this issue #306
P.S=> @seanprashad sort by ascending/descending is difficult to locate unless told :)

@LordChakshu In the above case, the frequency of this question is 155. The functionality requirement is when Facebook is selected and when we sort by descending, we should sort by most asked question to least asked question. That way those who have less time can prep most frequently asked questions.