Viewport tag; sorting log pages by page number.

i know this should really be two pull requests but it's 3:44 in the morning and i cba