Added JS objListSort function and tests