Problems with sorting

Example:

3 movies – names are
A with name for sorting 2 from year 2000
B with name for sorting 1 from year 2000
C with name for sorting 3 from year 1999

All films are in one collection

I choose this collection, sort by year (ascending is default) and I am waiting order:

C (1999,3)
B (2000,1)
A (2000,2)

but I have

C
A
B

Name of sorting is ignored and names are ordering by name of movies.

Whats wrong ?