add insert sorting and select sorting