I am creating an array of references (line 32) and trying to dereference them in line 42 after sorting on the basis of a date field. The deferencing doesn't seem to work....