Skip to main content
/** * Sorts a HTML table. * * @param {HTMLTableElement} table The table to sort * @param {number} column The index of the column to sort * @param {boolean} asc Determines if the sorting will be in ascending */ function sortTableByColumn(table, column, asc = true) { const dirModifier = asc ? 1 : -1; const tBody = table.tBodies[0]; const rows = Array.from(tBody.querySelectorAll("tr")); // Sort each row const sortedRows = rows.sort((a, b) => { const aColText = a.querySelector(`td:nth-child(${ column + 1 })`).textContent.trim(); const bColText = b.querySelector(`td:nth-child(${ column + 1 })`).textContent.trim(); return aColText > bColText ? (1 * dirModifier) : (-1 * dirModifier); }); // Remove all existing TRs from the table while (tBody.firstChild) { tBody.removeChild(tBody.firstChild); } // Re-add the newly sorted rows tBody.append(...sortedRows); // Remember how the column is currently sorted table.querySelectorAll("th").forEach(th => th.classList.remove("th-sort-asc", "th-sort-desc")); table.querySelector(`th:nth-child(${ column + 1})`).classList.toggle("th-sort-asc", asc); table.querySelector(`th:nth-child(${ column + 1})`).classList.toggle("th-sort-desc", !asc); } document.querySelectorAll(".table-sortable th").forEach(headerCell => { headerCell.addEventListener("click", () => { const tableElement = headerCell.parentElement.parentElement.parentElement; const headerIndex = Array.prototype.indexOf.call(headerCell.parentElement.children, headerCell); const currentIsAscending = headerCell.classList.contains("th-sort-asc"); sortTableByColumn(tableElement, headerIndex, !currentIsAscending); }); });

MALDIVES SERVICE CHARGES : TOP RESORTS, JANUARY 2021

January 2021

Resorts & HotelsService Charge ($)
Velaa Private Island 4,079.10
Waldorf Astoria Ithaafushi3,339.10
Cheval Blanc Randheli3,315.11
One & Only Reethi Rah3,007.00
Four Seasons Resort2,690.99
The Nautilus2,886.90
Joali2,761.41
Vakkaru2,382.92
Anantara Kihavah2,097.43
Niyama Private Island1,805.84
Raffles Maldives Meradhoo1,781.49
Intercontinental Maamunagau1,759.00
Milaidhoo Island1,758.00
Six Senses Laamu1,609.00
Ozen Reserve Bolifushi1,604.00
Dusit Thani1,601.80
Movenpick Resort Kuredhivaru1,424.00
Kanuhuraa1,335.55
Fairmont Sirru Fenfushi1,241.63
Como Maalifushi Resort1,176.00
W Maldives1,183.50
Taj Exotica1,166.00
Anantara Dhigu1,156.00
Ozen Life Maadhoo1,108.00
Atmosphere Kanifushi1,038.35
Amari Havodda1,016.00
BanyanTree Vabbinfaru1,014.00
Angsana Velavaru1,002.00
Huvafenfushi Maldives1,001.00
You&Me Cocoon935.00
Sheraton Full Moon884.29
The Sun Siyam Irufushi873.00
Moofushi866.00
Velassaru816.47
Conrad Rangali811.00
Varu by Atmosphere761.00
Pullman Maamutaa740.44
Holiday Inn Kandooma701.00
Fihalholi Island Resort627.00
Dhigali Maldives622.00
Oblu by Atmosphere615.00
Club Med Kanifinolhu466.00
Diamond Thudufushi Resort465.00
Royal Island Resort426.00
Club Med Finolhu Villas379.00
Cinnamon Hakuraa Huraa286.00

Comments