fixed leaderboard by meta key and added cast type support for sorting