optimized ideas_controller; order in DB instead of manually