election sort needs a default type