Make "recent projects" user-specified

I found the code that pulls the list of recent projects. It is in /app/models/user.rb lines 1585 to 1589.

It looks like it pulls a list of projects you are part of them sorts them by the creator’s user ID in descending order, with ties broken by sorting them by last updated time in ascending order.

I wonder if the fix here might be as simple as swapping those too. Looks like they probably meant to sort by last updated and break ties with user ID not the other way around.

Edit: Also Ruby is not a language I am strong in, so if my explanation is wrong, please forgive me, but that is how it reads to me. I mostly program in JavaScript, PHP, Python, and C#, not Ruby. But the location of the code is definitely correct.

2 Likes