def sort_time_date(dtfm, **kwargs):
    """Sort posts by time then date - newest posts first."""
    dtfm = dtfm.sort_values(by="TimeUpdated", ascending=False)
    dtfm = dtfm.sort_values(by="DateUpdated", ascending=False)

    return dtfm