Pinned thread should come first when sorting

Pinned threads come on the top when we sort threads
by most recent activities but in the most activities
and most vote case it doesn't come on top. Pinned
thread should come on top in any case of sorting

TNL-90
Merge pull request #5403 from mlkwaqas/waqas/tnl90-ordering-of-pinned-thread-ignored

Pinned thread should come first when sorting