Mitch Dale There is an error in your SQL query, the issue is that single quotes are treated as string literals, not column names. So this:
ORDER BY 'Edited text'
orders by a constant string and has no effect. Because your column name contains a space, you need to quote it as an identifier using double quotes:
SELECT *
FROM CSV
ORDER BY "Edited text";