Added code to sort results table in knockout