script sort should take in params when needed