updated files to try to get query sort to work.