fixed param names submitted for element sorting.
removed unused code.
story sorting is in fine whack.