If I am writing a sentence where both a noun and an adjective are used as modifiers, shall I write first the adjective, or the noun?

> It's a nice C code snippet.  
> (**?**) It's a C nice code snippet.

Is the same "rule" valid for the following sentence?

> Reserved SQL keywords are written in uppercase.  
> SQL reserved keywords are written in uppercase.