DEV Community

Discussion on: Sorting Your Gems

hopsoft profile image

We do this on CodeFund.

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).