Here is a list of files:
some.string_100_with_numbers.in-it.txt some.string_101_with_numbers.in-it.txt some.string_102_with_numbers.in-it.txt some.string_23_
Try the following:
sort -t '_' -k 2n
-t '_'
-k 2n
DEMO.