# Overwrote sorted() In Script Editor. How to Fix

**URL:** <https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [March 27, 2026, 10:16pm UTC](https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740 "2026-03-27T22:16:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 27, 2026, 10:16pm UTC](https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740/1 "2026-03-27T22:16:11Z")

</div>

I was testing in the script editor and accidentally made a list called "sorted". I've since removed that part of the code but I can no longer call `sorted()`, I just get an error saying that list object is not callable.

How do I fix it?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 27, 2026, 10:33pm UTC](https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740/2 "2026-03-27T22:33:01Z")

</div>

Reopen the project.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 1, 2026, 6:19am UTC](https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740/3 "2026-04-01T06:19:50Z")

</div>

Just out of curiosity, which script editor were you using?

This button fixes it in the script console

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb8601aced339982089be183b8936c80e3232766.png)

...in the component script editor, deleting the code fixed it for me without having to reload the project..

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [April 1, 2026, 1:10pm UTC](https://forum.inductiveautomation.com/t/overwrote-sorted-in-script-editor-how-to-fix/114740/4 "2026-04-01T13:10:46Z")

</div>

It was the script console.

Yes, that button does fix it for the console
