Add missing comma, reorder examples

I think it is more readable when examples follow the same order as the related text.
Updated query dsl snippets to follow the order of the text