move ordering of grouped publications from view to database