Applying sorting and subtotaling to table fields