added sorting to default-index