nivetha thiru
nivetha thiru

Reputation: 1

Numeric sorting is not working in uitable of Matlab. Need assisstance to override some JIDE methods in matlab

I am trying to sort a matlab ui table columns(created using jide). But instead of getting sorted numerically, it is getting sorted based on string. Ex if i have 4,44,2,22,1,11 it gets sorted like 1,11,2,22,4,44 instead of 1,2,4,11,22,44

            Scroll=lib.findjobj(m.thandle);
            m.hjtable = Scroll.getViewport.getView;
            m.hjtable.setNonContiguousCellSelection(false);
            m.hjtable.setColumnSelectionAllowed(false);
            m.hjtable.setRowSelectionAllowed(true);




            % Make table sortable on columns
            m.hjtable.setSortable(true);
            m.hjtable.setAutoResort(true);
            m.hjtable.setMultiColumnSortable(true);
            m.hjtable.setPreserveSelectionsAfterSorting(true);

Upvotes: 0

Views: 114

Answers (0)

Related Questions