Fixed diary entry ordering bug.