API docs
sort()

sort("ASC" | "DESC")

Sorts query results by timestamp either in ascending or descending format.

Parameters

- sortType: Either "ASC" (ascending) or "DESC" (descending)

const results = await myQuery.search("irys:transactions").token("ethereum").sort("ASC");
const results = await myQuery
	.search("arweave:transactions")
	.tags([{ name: "Content-Type", values: ["image/png", "image/jpg"] }]);
	.sort("DESC");