fixed numeric sort bug