getElements(sort) or something similiar, serously, you need to think about smaller code