sort in memory flag added and fixing bug when using autocompleter editor in a table grid