attempted sorting
merged