Implements ranking
Setting the ID within the Idea objects. Also allows for sorting based on rank.