Hi,
If all you need to do is "peak detect" (and not actually sort the values) then something like this might work
Code:
Values VAR BYTE[14]  ' Array to store the 14 values, array is indexed 0-13.
HighValue VAR BYTE   ' Highes value found
LowValue VAR BYTE    ' Lowest value found
i VAR BYTE
Temp VAR BYTE

HighValue = 0
LowValue = 255

For i = 0 to 13
  Temp = Values[i]
  IF Temp > HighValue THEN  HighValue = Temp ' Found new high value
  IF Temp < LowValue THEN  LowValue = Temp  ' Found new low value
NEXT

LCDOUT $FE, 1 , "Low: ", #LowValue, "  High: ", #HighValue
You can skip using the Temp variable and index the array directly if you want but it'll produce slightly larger code.

/Henrik.