Fix condition
Sort gems in group
Use meanful name
Set variable on initialize
Fix priority
Add priority gems
Use temporary variable
Use temporary variable
Add priority gems