#55 fix search bug when ordering by columns

Also forgot to expand rebuildSearchIndexColumns to work with the new
"formatted" array.