Working filtering and sorting from the querystring.
Only output one sync tag per line instead of many.