basic sorting complete, without modifying DOM