Updated SQL snippets. Added order by SQL snippet.