Sorting numeric data in char form

Capture.PNG
I want to sort data as per row 1 which should give result as below-
'-25~0'
'0~25'
'25~50'
'50~75'
'75~100'
'100~125'
'125~150'
'150~175'
Sortarray instruction is giving following result-
'-25~0'
'0~25'
'100~125'
'125~150'
'150~175'
'25~50'
'50~75'
'75~100'
Does anyone has solution for this?
Note: All the data is in character form.

Answers (0)

This question is closed.

Asked:

on 13 Feb 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!