Learning and Processing the Ordinal Information of Temporal Sequences in Recurrent Neural Circuits