You can use an if statement and the percentile function to do something like 'if pageviews > 99th percentile, then average view time, else 0'. Then if you sort the table by view time, it will effectively only sort those above the 99% criteria, everything is will be zero.