add ranking functionality to idea.rb
allow ranked ideas to be sprted properly in idea.db
half-way to getting this ranking thing going right