I want to be able to return User.all with current_user as the first result, and the rest sorted alphabetically by user.name.
What's the "Rails" way to do this? I think it's to convert the ActiveRecord_Relation to an array and then use a combo of .insert and .delete_at to move the target User from its current position to the front. Would I want to create a helper method for that? Or is there a completely different approach?
Thanks!
Not the most "railsy" way, but this should work: