Fixed listing order issue

Fixed listing order issue by prepending `.order(:id)` in embedded Ruby's `each` loop