DEV Community

Sorting Your Gems

Scott Watermasysk on March 25, 2019

I was looking through the Dev.to source, and the first thing that jumped out at me was the Gemfile was sorted (within each group). This made it muc...
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).