minor updates to sorting and tab definition