Anagram finder based in Ascii values

Hello, i need some help with a programm i want to make, what i want to do is to make a dictionary and include some anagrams with it, and make the programm read the Ascii value of each word, and compare them with the anagrams and make the programm print the words that have the same Ascii value, meaning that the words are the original and the anagram of it :wink: It's not a homework, i just wanted to try making a programm using the Ascci values.

Here are the words i have:

Words                             Anagrams

carro			:	abenlnela
lupa			        :	maraca
computadora		:	elico
agenda			:	saca
ubuntu			:	lorba
casa			        :	bleca
documento		:	pich
windows			:	sema
alumno			:	potal
manzana			:	adiservinud
arbol
pizarron
cielo
ventana
casillero
poster
aire
plaza
tienda
cable
tarea
chip
disco
pantalla
mouse
velcro
mueble
silla
mesa
sillon
plato
cocina
comida
cabello
ejercicio
azul
sol
tierra
universidad
sony
internet
guardar
madera
xbox
celular
mano
lentes
annabelle
camara
android

Please it would be of such help to tell me how i could do it

You appear to want awk or bash, but I think a language like perl which at least has data structures would be appropriate -- since I would want to solve this with a tree.

Though I suppose awk can emulate a tree, if you try hard enough, by cramming enough elements into the array index, though it wouldn't be efficient.

What languages do you have available?