Fixed "idx" when multiple snippets called at one page
Fixed default sortby when joined tables exists