Download
(54 Kb)
Download
Updated: 02/19/16 10:20 PM
Pictures
File Info
Compatibility:
Thieves Guild (2.3)
Orsinium (2.2.4)
Updated:02/19/16 10:20 PM
Created:10/29/14 09:05 PM
Monthly downloads:39
Total downloads:9,370
Favorites:23
MD5:
Categories:Bags, Bank, Inventory, Utility Mods
Circonians SortIt  Popular! (More than 5000 hits)
Version: 2.2
by: circonian [More]
What Does It Do?
SortIt allows you to create sort packages for sorting your inventory. You can choose to sort weapons to the top (or bottom) of your inventory, then armor, then sort by quality or name. You can choose to sort jewelry to the top, then 1h maces, then medium armor, then 2h swords, then the rest of the weapons, then by quality...or however you choose. You can choose the sort order (ascending or descending) for each sort key and you can chain up to 9 different sort keys.

You can create several different sort packages and toggle between them by clicking on the sort header in your inventory (see pictures for examples). Sort it allows you to apply different sort packages to different inventories (backpack, bank, guild bank) and remembers the last sort pack you were using and reloads it whenever you log in or reload your ui.
Highlights
  • Sorts your inventories: Backpack, Bank, Guild Bank.
  • Create sort packages with up to 9 sort Keys to sort your inventories by (sort by 1h maces, then jewelery, then 2h swords, then medium armor, ect...)
  • Choose Ascending or Descending sort for each sort key.
  • Create several sort packages & easily toggle between them by clicking on the sort header in your inventory.
  • You can apply different sort packages to different inventories.
  • SortIt remembers the last sort package you had active for each inventory & reloads the sort pack when you log in or reload your ui.

How Do I Use It?
  • Open the settings menu & create your sort packages.
  • Open your inventory & click on the sort header (see pictures if you don't know what that is) to toggle the sort pack.
  • Click the double arrow sort header to toggle/reverse the sort direction.


Note: At this time you can not edit sort packages. They only take a second to create, just delete the one you don't want and/or create a new one.
Version 2.2 --

Code Update Delayed the initialization of SortIts slot data to wait for all addons to load. This will "help" eliminate errors in "other addons" that are caused because the other addons did not initialize their slot data when their addon was loaded.
Version 2.1 --

Library Update Minor update to make an early return if another addon crashes the EVENT_INVENTORY_SINGLE_SLOT_UPDATE to prevent SortIt from showing UI errors even though nothing is wrong with SortIt.
Version 2.0 --

API Update No changes, just an API update
Version 1.9 --

API # Update
Version 1.7 --

Added Missing "Woodworking Filter"
Fixed the "Create Pack Name" so it doesn't clear every time you make a change to the filter your creating.
Version 1.6 --

Code Change There was a bug that when you clicked on the sort header to change the sort while in a guild bank everything would go blank. That has been fixed....but the problem is caused by that annoying spinning wheel...you know what I mean. 3/4 the time you try to open the guild bank & you have to wait & wait. Close the bank & open it back up, exc... That is what was causing the problem. The filters should no longer make your guild bank go blank,

BUT, when you open up the guild bank despite what sort it says it is on....items will NOT be sorted :(
However if you click the sort header it will then sort them. The problem is because the items populate in the guild bank sooo slow and there is no way for me to know when it is done adding items to the guild bank and I can't add the necessary data for sorting to the items in the guild bank until all of the items are done loading.

I've been thinking about this and I am coming up blank. I don't think its going to be possible to fix as long as the guild bank populates so slowly...but at least "after the guild bank loads" if you click on the headers it will work & sort them then, it just can't sort them when it initially loads.
Version 1.5 --

Added 1h Weapon & 2h Weapon Sort Filters
Increased the number of possible sort filters from 9 to 12
Version 1.4 --

Updated API version
Updated LibAddonMenu
Version 1.3 -- Update & Bug Fix

Bug Fix: Apparently whenever you dropped an item into your bank, withdrew an item, or anything that caused an item to change slots the sortKeys for that item were not getting repopulated which would prevent that item from being sorted properly. It has been fixed.
New SortKeys: Added a bunch of new SortKeys to sort by.
Updated the API Version Number:
Version 1.1-- Bug Fix [indent]Guild Store: Addon should no longer break when using the guild store.
Saving Sort Packs: Sort Packs should now be properly saved between ui reloads.
Archived Files (11)
File Name
Version
Size
Uploader
Date
2.1
54kB
circonian
02/12/16 07:08 PM
2.0
54kB
circonian
11/03/15 03:21 PM
1.9
49kB
circonian
08/31/15 06:58 PM
1.8
49kB
circonian
08/31/15 06:49 PM
1.7
49kB
circonian
06/08/15 02:02 PM
1.6
49kB
circonian
04/08/15 09:35 PM
1.5
49kB
circonian
03/11/15 03:02 PM
1.4
49kB
circonian
03/04/15 08:59 AM
1.3
45kB
circonian
11/03/14 07:12 AM
1.1
43kB
circonian
10/30/14 06:28 PM
1.0
43kB
10/29/14 09:05 PM


Post A Reply Comment Options
Unread 01/16/19, 09:34 AM  
Mithrandir

Forum posts: 0
File comments: 2
Uploads: 0
I think the crafting bag might had something to do with breaking it.
If you look in the header code you only have you backpack, bank and guild bank but no mentioning of the craftbag and de craftbag is one of the icons in your inventory that you get to see.

SortIt.lua
Lua Code:
  1. ---------------------------------------------------------
  2. --  Get Inventory For Header Group  --
  3. ---------------------------------------------------------
  4. local function GetInventoryForHeaderGroup(_SelectedHeaderGroup)
  5.     local headerContainer = _SelectedHeaderGroup.headerContainer
  6.    
  7.     if headerContainer == ZO_PlayerInventorySortBy then
  8.         return INVENTORY_BACKPACK
  9.     elseif headerContainer == ZO_PlayerBankSortBy then
  10.         return INVENTORY_BANK
  11.     elseif headerContainer == ZO_GuildBankSortBy then
  12.         return INVENTORY_GUILD_BANK
  13.     end
  14. end
  15.  
  16.  
  17. ----------------------------------------------------------------------------------------------
  18. -- Hook the OnHeaderClicked so I can override what happens when the user clicks the main    --
  19. -- Header (the one typically named "Name") in the inventories                               --
  20. ----------------------------------------------------------------------------------------------
  21. local hCallback = ZO_SortHeaderGroup.OnHeaderClicked
  22. function ZO_SortHeaderGroup:OnHeaderClicked(header, suppressCallbacks)
  23.     local ClickedHeader = header -- Just for clarity, its the header they just clicked
  24.     local selfHeaderGroup = self -- Just for clarity, its the headerGroup they just clicked
  25.    
  26.     --ZO_TradingHouseItemPaneSearchSortBy
  27.     -- If its the guild store groupHeaderContainer, let the game handle the click & return
  28.     if selfHeaderGroup.headerContainer ~= ZO_PlayerInventorySortBy and selfHeaderGroup.headerContainer ~= ZO_PlayerBankSortBy and selfHeaderGroup.headerContainer ~= ZO_GuildBankSortBy then
  29.         hCallback(selfHeaderGroup, ClickedHeader, suppressCallbacks)
  30.         return
  31.     end

I have been trying to look up code to add the craftbag but have not been able to find it yet.
Last edited by Mithrandir : 01/16/19 at 09:36 AM.
Report comment to moderator  
Reply With Quote
Unread 05/23/17, 10:20 AM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
Morrowind finaly broke this AddOn, I wish there was a good replacment
Report comment to moderator  
Reply With Quote
Unread 02/07/17, 08:11 PM  
BigM
 
BigM's Avatar

Forum posts: 16
File comments: 371
Uploads: 0
Anyone else having issues with this addon where it won't allow you to hit E to withdraw, equip, ect.
Report comment to moderator  
Reply With Quote
Unread 02/22/16, 07:31 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
fixed

Awesome Circonian! I think this fixed it for me thanks god I can use this AddOn again

Coud you maybe give more auto sorting for the Crafting Mat type by level? E.g enchanting material rank 1,2,3 or for woodworking it woud be maple, oak, beech...
I can't find an option to sort it like that but I see no reason why they shoud be so mixed up

Same problem for the crafting Mat type in general: I had to set the addon up to put alchemy, enchanting and provisioning together after that the other professions. (Think about the citys where this professions are close together)
Same for Equip Type I woud keep rings and neks together somehow I managed this with the sorts but now I have no more free space to keep 1hand weapons and shilds together (shilds are next too 2hand weapons). Here is woud be nice too if the gear was sorted by level.

Also woud be nice if the AddOn had global profils or if I coud copy a profil from my main to all my alts... I just did this with the luas file but that realy is a pain

BTW this are my sorting options:
Last edited by Tonyleila : 02/23/16 at 10:46 AM.
Report comment to moderator  
Reply With Quote
Unread 02/19/16, 10:34 PM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Re: Re: Re: Lua Error

Originally Posted by Tonyleila
The problem is when this error happens I can't use my inventory any more the items are locked and the tooltips are gone untill I reload.
Originally Posted by circonian
Do you use any other addons that do anything with the inventory?
Yes all you coud Imagine but it all works fine together as long as SortIt is disabled. I rolled back to "MrPlow - Inventory Sorter" it sucks because no config but better than nothing Also tryed out "Quality Sort" also no error only problem is SortIt
I use: Craft Store, BankManagerRevived, AdvancedFilters, Inventory Insight - From Ashes, InventoryGridView, JunkIt
I managed to trace it down.
As I mentioned below, the error is in CraftStore. CraftStore stores data in the inventory slots table, but I could not find any code that initializes the data. Instead it looks like CraftStore only watches for the "slotAdded" and "slotRemoved" to be fired and it adds its data to the slot table when the "slotAdded" callback is fired.

The problem with that is that SortIt is being loaded first, which was causing the slots to be populated when SortIt Initializes its inventory slot data and thus all of the "slotAdded" callbacks were being fired before CraftStore even loaded. Therefore the CraftStore addon never sees the "slotAdded" callbacks being fired and since CraftStore doesn't initialize its data to those tables when it loads, CraftStores slotData.lnk does not exists, and therefore CraftStore throws an error.

I delayed SortIt's calls that initializes it's data to the bank slots to let CraftStore to load first which will probably eliminate your problem. But that data should really be populated when CraftStore loads instead of assuming that the slots have not been added yet.

Posted Version 2.2
Last edited by circonian : 02/19/16 at 10:52 PM.
Report comment to moderator  
Reply With Quote
Unread 02/19/16, 06:03 AM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Re: Can you set default sort?

Originally Posted by Jhenox
I have tried this addon in the past but I ended up giving it up because I was not able to find a way to set a default sort method that the inventory would open with. Was I wrong? I wanted more of a set-it-and-forget it type sorting addon. I have been using "MrPlow - Inventory Sorter" for a long time but it is a bit limited. Thank you.
You don't have to set anything. It automatically remembers whatever the last sort was you used and defaults to that sort every time you open the inventory. Even if you reload the ui or log out & back in it will default to whatever the last sort was that you had active.

Or do you mean you want to set a default sort so that you can: change the sort, close the inventory, open the inventory & it changes the sort back to something you set as a default (even though its a different sort than the one you used last)?
Report comment to moderator  
Reply With Quote
Unread 02/19/16, 05:54 AM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Re: Re: Re: Lua Error

Originally Posted by Tonyleila
The problem is when this error happens I can't use my inventory any more the items are locked and the tooltips are gone untill I reload.
Originally Posted by circonian
Do you use any other addons that do anything with the inventory?
Yes all you coud Imagine but it all works fine together as long as SortIt is disabled. I rolled back to "MrPlow - Inventory Sorter" it sucks because no config but better than nothing Also tryed out "Quality Sort" also no error only problem is SortIt
I use: Craft Store, BankManagerRevived, AdvancedFilters, Inventory Insight - From Ashes, InventoryGridView, JunkIt
When I get a chance this weekend I'll look at some of those other addons. I don't doubt what you said, that turning off SortIt fixes your problem. But I still doubt SortIt is causing the problem. It's been out for about 1.5 years, with practically no changes, & no ones mentioned any problems before. Also the code error you posted I'm 100% sure is not caused by sortIt. The error you posted for SortIt was that the player inventory did not exist. Which could only happen if an addon intentionally erased it or an error occurred somewhere else while the game was updating it which wiped it out.

The only thing I can think of that SortIt does that could effect any other addon is that it refreshes the inventory slots sometimes. If another addon was storing data in the inventory slots table and they did not handle slot updates properly a refresh would wipe that data out. Then if they tried to use the data they stored there (which would no longer exist), without properly checking if the data values exist, it would cause an error just like the one you posted. That could also explain why turning off SortIt stops the error, because then SortIt is no longer running to refresh the inventory slots.
Report comment to moderator  
Reply With Quote
Unread 02/18/16, 10:13 AM  
Jhenox
 
Jhenox's Avatar
AddOn Author - Click to view AddOns

Forum posts: 42
File comments: 392
Uploads: 6
Can you set default sort?

I have tried this addon in the past but I ended up giving it up because I was not able to find a way to set a default sort method that the inventory would open with. Was I wrong? I wanted more of a set-it-and-forget it type sorting addon. I have been using "MrPlow - Inventory Sorter" for a long time but it is a bit limited. Thank you.
Report comment to moderator  
Reply With Quote
Unread 02/17/16, 11:21 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
Re: Re: Lua Error

The problem is when this error happens I can't use my inventory any more the items are locked and the tooltips are gone untill I reload.
Originally Posted by circonian
Do you use any other addons that do anything with the inventory?
Yes all you coud Imagine but it all works fine together as long as SortIt is disabled. I rolled back to "MrPlow - Inventory Sorter" it sucks because no config but better than nothing Also tryed out "Quality Sort" also no error only problem is SortIt
I use: Craft Store, BankManagerRevived, AdvancedFilters, Inventory Insight - From Ashes, InventoryGridView, JunkIt
Last edited by Tonyleila : 02/17/16 at 11:24 PM.
Report comment to moderator  
Reply With Quote
Unread 02/12/16, 07:19 PM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Re: Lua Error

Originally Posted by Tonyleila


EDIT: Looks like it also causes some erros with craft store, they go away as soon as I disable sortit:
got this wen opening my bank:
It is not an error with SortIt.
Some addon is causing an error in the middle of zos updating the inventory slots which messes up the slot data. Even though an error occurred zos code still fires the EVENT_INVENTORY_SINGLE_SLOT_UPDATE, but the inventory slots table no longer exists due to the error which is causing SortIt to throw that error because the slot technically exists, but the inventory slots table does not exist due to whatever caused the original error.
I placed an early return in to stop early if the table does not exist, but that will not fix your problem. It will only stop SortIt from showing up in the UI error window.

When slots are updated, due to the different ways that CraftStore & SortIt watch for slot updates, the CraftStore code always runs first. Which means the CraftStore error occurred first, which then caused the SortIt error to be displayed.

I'm not saying CraftStore is the main cause of the problem. It is possible some other addon caused the original problem, which then caused CraftStore to thrown an error, which caused SortIt to thrown an error...although I doubt it since you only posted error messages referencing CraftStore & SortIt.

I installed CraftStore and could not reproduce the error, but the error msgs you displayed leads me to believe for ...whatever reason, the inventory slot data: data.lnk (thats what craftstore calls the location they save a link) does not exist. I looked at that code too & I do not know why that would happen. SortIt does not do anything that would cause data.lnk to dissappear, as hard as I tried to get CraftStore to mess up and throw that error, I could not get the error to occur without manually nilling out the data.lnk value myself.

Do you use any other addons that do anything with the inventory?
Last edited by circonian : 02/13/16 at 03:19 AM.
Report comment to moderator  
Reply With Quote
Unread 02/08/16, 01:01 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
Lua Error



EDIT: Looks like it also causes some erros with craft store, they go away as soon as I disable sortit:
got this wen opening my bank:
Lua Code:
  1. user:/AddOns/CraftStore/CraftStore.lua:2747: attempt to index a nil value
  2. stack traceback:
  3.     user:/AddOns/CraftStore/CraftStore.lua:2747: in function 'OnSlotRemoved'
  4.     EsoUI/Libraries/Utility/ZO_CallbackObject.lua:111: in function 'ZO_CallbackObject:FireCallbacks'
  5.     EsoUI/Ingame/Inventory/SharedInventory.lua:397: in function 'ZO_SharedInventoryManager:HandleSlotCreationOrUpdate'
  6.     EsoUI/Ingame/Inventory/SharedInventory.lua:198: in function 'ZO_SharedInventoryManager:RefreshSingleSlot'
  7.     EsoUI/Ingame/Inventory/SharedInventory.lua:43: in function 'RefreshSingle'
  8.     EsoUI/Libraries/Refresh/Refresh.lua:65: in function 'ZO_Refresh:UpdateRefreshGroups'
  9.     EsoUI/Ingame/Inventory/SharedInventory.lua:228: in function 'ZO_SharedInventoryManager:GenerateSingleSlotData'
  10.     EsoUI/Ingame/Inventory/Inventory.lua:852: in function 'ZO_InventoryManager:AddInventoryItem'
  11.     EsoUI/Ingame/Inventory/Inventory.lua:1028: in function 'ZO_InventoryManager:RefreshInventorySlot'
  12.     EsoUI/Ingame/Inventory/Inventory.lua:1884: in function 'OnInventorySlo

And this when I deconstrucked:
Lua Code:
  1. user:/AddOns/CraftStore/CraftStore.lua:2747: attempt to index a nil value
  2. stack traceback:
  3.     user:/AddOns/CraftStore/CraftStore.lua:2747: in function 'OnSlotRemoved'
  4.     EsoUI/Libraries/Utility/ZO_CallbackObject.lua:111: in function 'ZO_CallbackObject:FireCallbacks'
  5.     EsoUI/Ingame/Inventory/SharedInventory.lua:397: in function 'ZO_SharedInventoryManager:HandleSlotCreationOrUpdate'
  6.     EsoUI/Ingame/Inventory/SharedInventory.lua:198: in function 'ZO_SharedInventoryManager:RefreshSingleSlot'
  7.     EsoUI/Ingame/Inventory/SharedInventory.lua:43: in function 'RefreshSingle'
  8.     EsoUI/Libraries/Refresh/Refresh.lua:65: in function 'ZO_Refresh:UpdateRefreshGroups'
  9.     EsoUI/Ingame/Inventory/SharedInventory.lua:77: in function 'OnInventorySlotUpdated'
Lua Code:
  1. user:/AddOns/CraftStore/CraftStore.lua:2747: attempt to index a nil value
  2. stack traceback:
  3.     user:/AddOns/CraftStore/CraftStore.lua:2747: in function 'OnSlotRemoved'
  4.     EsoUI/Libraries/Utility/ZO_CallbackObject.lua:111: in function 'ZO_CallbackObject:FireCallbacks'
  5.     EsoUI/Ingame/Inventory/SharedInventory.lua:397: in function 'ZO_SharedInventoryManager:HandleSlotCreationOrUpdate'
  6.     EsoUI/Ingame/Inventory/SharedInventory.lua:198: in function 'ZO_SharedInventoryManager:RefreshSingleSlot'
  7.     EsoUI/Ingame/Inventory/SharedInventory.lua:43: in function 'RefreshSingle'
  8.     EsoUI/Libraries/Refresh/Refresh.lua:65: in function 'ZO_Refresh:UpdateRefreshGroups'
  9.     EsoUI/Ingame/Inventory/SharedInventory.lua:204: in function 'ZO_SharedInventoryManager:GenerateFullSlotData'
  10.     user:/AddOns/CraftStore/CraftStore.lua:546: in function 'CS.UpdateBag'
  11.     user:/AddOns/CraftStore/CraftStore.lua:2695: in function '(anonymous)'
Last edited by Tonyleila : 02/08/16 at 06:12 PM.
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 02:55 PM  
Sp00sty

Forum posts: 67
File comments: 172
Uploads: 0
Thanks for that,

Many may not be using it the way I do. I have 7 crafting characters and each carries specific mats, with sortit I can push their primary stock to the top or bottom for easy swapping between bank and bags and stores.

Cheers
Report comment to moderator  
Reply With Quote
Unread 06/08/15, 02:04 PM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Re: WoodCraftingMat Sort

Originally Posted by Sp00sty
circonian,

Any chance you've had time to check on the WoodCraftingMat sort item I put in Bug and Feature portal?

Sorry for the double posting.
Thats ok, I haven't been around much lately, been busy.
It was just something I overlooked. I apparently never added woodworking to the filters & no one ever mentioned it. I added it.

Version 1.7 posted.
Report comment to moderator  
Reply With Quote
Unread 06/02/15, 06:56 PM  
Sp00sty

Forum posts: 67
File comments: 172
Uploads: 0
WoodCraftingMat Sort

circonian,

Any chance you've had time to check on the WoodCraftingMat sort item I put in Bug and Feature portal?

Sorry for the double posting.
Report comment to moderator  
Reply With Quote
Unread 03/08/15, 06:29 PM  
circonian
AddOn Author - Click to view AddOns

Forum posts: 613
File comments: 804
Uploads: 27
Originally Posted by mistik911
Could you add an option to disable sortit in the guild store? The filters for awesomeguildstore over lap with sortit on the sell tab. Thanks for making this addon, its awesome.
Are you refering to this, where long sort names overlap the searchbox?


If that is the only problem I would recommend you ask sirinsidiator to move the search box over a little bit further to accomidate longer header names. It would only require changing a single number in his code and I don't see any negative side effects to his addon from moving the box a little. Then you would still have the functionality of both addons.

You could even do it yourself if you dont want to wait, in the file: SalesCategorySelector.lua
Line: 80
Change:
Lua Code:
  1. -- Change the 220 in this line:
  2. --searchBoxControl:SetAnchor(TOPLEFT, sortByControl, TOPLEFT, 220, 3)
  3.  
  4. -- To a larger value, like 300 and that will move the box over a little bit:
  5. searchBoxControl:SetAnchor(TOPLEFT, sortByControl, TOPLEFT, 300, 3)
Last edited by circonian : 03/08/15 at 06:33 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: