This code is an example of a simple bubble sort function in C++.
the function doesnt receive or returns nothing
just for the record, some translations
"declaracion de constante" = constant declaration
"prototipo de funcion" = function prototype
"arreglo" = array
"Arreglo en el orden original" = original array order
"temporal" = temp
"Ordenado de mayor a menor" = Ascending order (from 0 to N [where n can be any number larger than 0])
"Ordenado de menor a mayor" = Descending order (from N to 0 [where n can be any number largern than 0])
hope someone find it useful.
JLChafardet