parameters
fixed sort order of final result.. unit tests