How to order alphabetically and have results with a dot on the first place?
Query:
SQL SELECT name FROM articles ORDER BY name;
**and the result is:**
GitFlow GithubFlow .gitignore Handover Incremental migrations
...but I want to have `.gitignore` first.
**Expected result:**
.gitignore GitFlow GithubFlow Handover Incremental migrations
**//update:**
**Correct query is:**
SQL
SELECT name FROM articles ORDER BY name::bytea;
source: Incorrect sort/collation/order with spaces in Postgresql 9.4
...but I don't know why, could you explain it?
//edit1:
I need to sort other non-letter characters as first too. (e.g. $-_# ...)