add sort method
hash algorithm