sort materials by time