The story
Traditionally, it is said that 周文王 Zhōu Wén Wáng (King Wen) arranged the hexagrams in this sequence while imprisoned by 商紂王 Shāng Zhòu Wáng in the 12th century BC. However, the true age and authorship are unknown.
Etymology from Wiktionary, CC BY-SA 4.0.