JFormFieldOrdering::getQuery

Builds the query for the ordering list.