Smart top-k querying: sorted access