def bubbly_sort():
socks = []
for sock in socks_list:
if sock_distance_to_vortex > 10:
discard(sock)
else:
add prophets_to_bubbles(sock)