sort + other funcs

dem functions haz bin implements