Fixed a bug causing reverse ordering

Ordering is not from most popular to least, not the other way around.