Sorting of a calculated decimal field fails in listIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms There can be cases where sorting of "Calculated" decimal fields won't sort the right way in list view. Let's consider the below example: 1. Open any supported environment. 2. Let's consider "Weight" and "Max Weight" field defined in asmt_metric table. 3. Open the "Max Weight" dictionary field and switch to "Advanced view". 4. Under "Calculated Value" form section, set "Calculated" checkbox to true. 5. "Calculation" field shows up. Kindly add the following: (function calculatedFieldValue(current) {// Add the "Weight" field's value twice and reflect it on "Max Weight" field. var result = current.weight + current.weight; return result; // return the calculated value})(current); 6. Go to "asmt_metric" table list view. (asmt_metric.list) 7. Bring "Weight" and "Max Weight" fields in the list view (via Personalize List Columns). 8. Change any record's "Weight" field to a small/large value, let's say 1.5 or 10.5 9. The "Max Weight" field will show the double value (3 or 21). Sort the "Max Weight" field in ascending/descending order. 10. You will notice the sorting order breaks and the calculated values (like above) will be in between the list. This also breaks if we use modify the above script like this: var result = current.weight + 12.54; Release Jakarta, Kingston and London. Cause The sort order of records is based on the value in the database and not what is displayed on the form/list.The Calculation will manipulate the value displayed in a list or a form, but the actual value in the database is not changed until the record is updated.So based on above example, the display of the "Max Weight" field was manipulated and from database perspective, it was never updated at all. Resolution Technically, the calculated field is not updated at the database.Hence in order to do that, our recommendation is to perform GlideRecord update() via business rules or script includes. Additional Information Business Rules: https://docs.servicenow.com/csh?topicname=c_BusinessRules.html&version=latest Script includes: https://docs.servicenow.com/csh?topicname=c_ScriptIncludes.html&version=latest