DEV Community

Discussion on: Sorting Your Gems

Collapse
hopsoft profile image
Hopsoft

We do this on CodeFund. github.com/gitcoinco/code_fund_ads/

I also do it on most of my side projects. I think it makes sense to sort any list that you need/want to scan visually. Things like permitted strong parameter attributes in your controllers, etc... Sorting helps you find things quickly and detect potential issues (like duplicate entries).