Sort a list of items (including nested items) with jQuery