add position sorting for image subdocuments