دنبال کننده ها

۱۳۹۶ مهر ۱۱, سه‌شنبه

sorting - Sort table based on fa-icon (span) in Javascript

[ad_1]



I have a table with lots of values and I provide an easy way to see what status the table is at by providing icons on the first column of the table.



I want to sort by that, and my sorting function works for all other tables (date, name, etc.) but I'm not sure how to give a span class with nothing in it, a sorting weight.



i.e. I want to be able to sort so all fa-success span cells can be together.



This is the content example of an "errored" row.



<i class="fa fa-exclamation-circle text-warning" title="Needs manual review">



Does anyone have any suggestions?




[ad_2]

لینک منبع