snippets: fix loading of function order