add sorting by size with the flag