Pass subid along during formatting and sorting, allowing the correct div to be selected for appending