how analog input works? (from an electric point of view)

Oh neat, thanks for that link. Like an analog quicksort so to speak?