add alphanum.py and fix sort bug