How to change words into numbers?
Publicado por Cesc (3 intervenciones) el 22/01/2017 18:17:20
How can be change words into number in order to be able to sort them better?
if I have for example:
A = 'AFA'
B = 'GDA'
C = 'FAD'
D = 'ABA'
And I want them to become numbers but not using double because it makes them be three numbers as
b = double(D)
b = 65 66 65
But what I would want the the sentence 'ABA' gives only a number in order to sort the sentences alpahabetically as
D A C B
Is there something that converts A B C D in only one number to order them alfhabetically?
if I have for example:
A = 'AFA'
B = 'GDA'
C = 'FAD'
D = 'ABA'
And I want them to become numbers but not using double because it makes them be three numbers as
b = double(D)
b = 65 66 65
But what I would want the the sentence 'ABA' gives only a number in order to sort the sentences alpahabetically as
D A C B
Is there something that converts A B C D in only one number to order them alfhabetically?
Valora esta pregunta
0