add sort functionality for mongo data
fix bug on textcells