added sortbyvotes config option and removed --votes