add total_vote column to categories and posts to change default_scope by order total_vote; move vote sort to models