> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/inventory/physical-vs-actual-stock-doc-wise-entry/physical-vs-actual-stock-doc-wise-entry-configuration/use-custom-order.md).

# Use Custom Order

**YouTube:** [How to Enable Custom Sort Order in Physical vs. Actual Stock Document-Wise Entry?](https://youtu.be/0KioAq7lFUM)

## How to Enable Custom Sort Order in Physical vs. Actual Stock Document-Wise Entry?

In this tutorial, we’ll learn how to use the **“Use Custom Order”** feature in the **Physical Versus Actual Stock – Document Wise Entry** module. This feature allows users to customize the sorting order of item details based on fields such as lot code, group name, and item name, making stock verification more organized and easier to manage.

**Let’s get started!**

***

### Access to the Physical Stock Entry Module

* Navigate to the **"Inventory"** and open "**Physical Versus Actual Stock – Document Wise Entry"** module.
* Begin the Stock Verification process.
* By default, the system displays item details in its predefined sorting order.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FhklxoD92CvvJUdECLCl9%2FDefault.png?alt=media&amp;token=d33d711c-ec58-4219-9d29-9eca271f8155" alt=""><figcaption></figcaption></figure>

**Let’s explore how to customize the sorting order according to your requirements.**

***

### Enable the Custom Order Feature

* Open the configuration settings.
* Locate the option labeled as:&#x20;

> **“Use Custom Order”**&#x20;

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FpQTGealIMMi1I6WxtwET%2Fcnf.png?alt=media&amp;token=6674e1b4-5bf9-4af3-bcb2-50f3ea140a14" alt=""><figcaption></figcaption></figure>

* Enable this option to customize the sorting order of the available fields.
* Arrange the fields in the desired priority order.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FH7Z2ciL1yDz16n4vXTGY%2FCNF%202.png?alt=media&amp;token=00569b24-14a1-4c64-9c31-7277b5e1c4d5" alt=""><figcaption></figcaption></figure>

**The field placed at the top of the custom order list receives the highest sorting priority.**

#### **Understand the Sorting Priority**

* The system sorts the records in **ascending order** based on the first field in the custom order list.
* If multiple records have the same value in the first field, the system uses the next field in the list to determine their order.
* You can change the field priority to control how the item details are displayed.

**Now, let’s see how changing the sorting priority affects the stock verification screen.**

***

### Sort Items by Lot Code

* Open the configuration settings.
* Place **Lot Code** at the top of the custom order list.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FZTIrEhXhSVDruVwv7SYP%2FCNF%202.png?alt=media&amp;token=2aa64c8f-ae99-4188-b2ff-a5815e6cc458" alt=""><figcaption></figcaption></figure>

* Return to the stock verification screen and observe the existing order of the lot codes.
* Click **Refresh Stock** to apply the updated sorting configuration.
* The system now displays the lot codes in ascending numerical order.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FdflmKUug4zytnEQQbrTp%2FLot%20Code.png?alt=media&amp;token=d2e5080a-aeeb-496b-a9e1-9e5a3bf835fd" alt=""><figcaption></figcaption></figure>

**This demonstrates how placing Lot Code at the top prioritizes the sorting of records by lot code.**

***

### Sort Items by Group Name

* Return to the configuration settings.
* Move **Group Name** to the top of the custom order list.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FJ14E0U9lwkUy0hVFEE3q%2FGroup%20Name.png?alt=media&amp;token=f3e7032c-f657-48ed-b897-0a81d6dba95f" alt=""><figcaption></figcaption></figure>

* Return to the stock verification screen and observe the current order of the group names.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FMZv6hw07bnsAUf2TljDp%2FGroup%20Name%20-%20CNF.png?alt=media&amp;token=00679322-5523-4273-a834-e1bde3e80fea" alt=""><figcaption></figcaption></figure>

* Click **Refresh Stock** to apply the changes.
* The system now displays the group names in ascending alphabetical order.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fqk9m4LmpqZIErA1DINko%2FGroup%20-%202.png?alt=media&amp;token=471d4b29-75b6-488f-8135-5bea6f5516c5" alt=""><figcaption></figcaption></figure>

**This demonstrates how changing the sorting priority to Group Name organizes the records alphabetically by group.**

***

### Sort Items by Item Name

* Open the configuration settings again.
* Place **Item Name** at the top of the custom order list.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FRE8ZfrbRQnXnJdEGBJXB%2FItem%20Name%20-%20CNF.png?alt=media&amp;token=9008b83c-0db0-4342-afaf-4f4f7d4366a2" alt=""><figcaption></figcaption></figure>

* Return to the stock verification screen.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FVOur9xpos3S0wrCH0qnj%2FItem%20Name%20-%20Before.png?alt=media&amp;token=6be86136-04f7-4061-91df-dd77f9f370f7" alt=""><figcaption></figcaption></figure>

* Click **Refresh Stock** to apply the updated sorting order.
* Observe how the system arranges the item names in ascending order, considering their numeric and alphabetical values.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLpD49QxOLWRq6TTXZBls%2FItem%20Name%20-%20After.png?alt=media&amp;token=a8725137-576d-49e1-839b-ad8c6b71fc04" alt=""><figcaption></figcaption></figure>

**This demonstrates how Item Name can be used as the primary sorting field to organize item details.**

***

### Conclusion / Result

* **Custom Sorting:** The “Use Custom Order” feature allows users to define the sorting priority of item details.
* **Sorting Priority:** The field at the top of the list determines the primary sorting order, while subsequent fields are used when values match.
* **Flexible Organization:** Users can sort records by Lot Code, Group Name, Item Name, or other available fields.
* **Apply Changes:** Clicking **Refresh Stock** applies the configured sorting order to the stock verification screen.

**By using the Custom Order feature, users can organize stock details according to their requirements, making the physical stock verification process more structured and convenient.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/inventory/physical-vs-actual-stock-doc-wise-entry/physical-vs-actual-stock-doc-wise-entry-configuration/use-custom-order.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
