Added period sort.