added sorting for source objects