not clear to me why this isn't working except that it may sort in the wrong direction