The invention discloses a method for realizing data multi-field sorting based on
JavaScript, which comprises the following steps: S1, receiving a single or mixed sorting request aiming at
original data including Chinese, English, numbers, version numbers, dates, intervals, '--', null, 'null' and '(null)', the sorting request carrying the
original data and a sorting field array; s2, sequencing the fields according to the sequencing sequence of the sequencing field array in the step S1; and S3, sorting the
field data according to the sorting sequence of the object arrays in the sorted field array obtained in the step S1 and the field sorting sequence obtained in the step S2. The invention relates to a front end for realizing multi-column sequential mixed sorting of data, and meets the requirement of a user for checking the data by multi-dimensional sorting.