def solution(arr, divisor):
answer = []
for num in arr:
if num%divisor == 0:
answer.append(num)
answer.sort()
if answer == []:
answer.append(-1)
return answer
def solution(arr, divisor): return sorted([n for n in arr if n%divisor == 0]) or [-1]