Maintain original sort order in detached node sorting in Webkit. Fixes jQuery #13331.