adding auto sorting to collections