It was composed in 1872 by Margaret of Sarawak , in honour of Charles of Sarawak .
Was in use until the Kingdom was ceded to the United Kingdom in 1946 .
It was composed in 1872 by Margaret of Sarawak , in honour of Charles of Sarawak , and was in use until the Kingdom was ceded to the United Kingdom in 1946 .