Custom field sorting method and device, equipment and storage medium
Through the custom field sorting method, users can define sorting fields and rules according to their needs, and sort them in combination with comprehensive scoring rules, solving the problem that traditional sorting methods cannot meet personalized needs and achieving higher sorting accuracy and user experience.
Patent Information
- Application Number
- CN202411492516.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-21
AI Technical Summary
Traditional sorting methods are limited by fixed fields and rules, and cannot meet users' personalized sorting needs.
Provide a custom field sorting method. By obtaining multiple user-defined sorting fields and sorting rules, combining weight sorting rules, combination sorting rules and conditional sorting rules, the comprehensive scores of each sorting field are calculated, and sorted to obtain the self-sorted Defines the data sorting result of the field.
It realizes the flexibility to define sorting fields and rules according to user needs, meets personalized sorting needs, and improves the accuracy and user experience of sorting.
Smart Images

Figure CN119493839A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of field sorting, and in particular to a method, device, equipment and storage medium for customizing field sorting. Background Art
[0002] In the related art, as users require more and more sorting and displaying based on different fields and different rules, different customers have different requirements for the same field and different rules, and the traditional sorting method is limited by fixed fields and rules and cannot meet the personalized sorting requirements of users. Therefore, it is necessary to provide a method that allows users to flexibly define sorting fields and rules according to their needs to meet the needs of different users. Summary of the invention
[0003] The present application provides a method, device, equipment and storage medium for customizing field sorting to meet personalized sorting requirements. The technical solution of the present application is as follows:
[0004] According to a first aspect of an embodiment of the present application, a method for sorting custom fields is provided, comprising:
[0005] Acquire multiple sorting fields and sorting rules defined by the user, wherein the sorting rules include one or more of weight sorting rules, combination sorting rules, and conditional sorting rules. The weight sorting rule includes the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rule includes the weight and sorting order of each sorting field under different combination conditions. The weights of the same sorting field in different combination conditions are the same or different. The conditional sorting rule includes the weights of each sorting field and the sorting order of the sorting fields under different specific conditions.
[0006] Based on the sorting rule and the comprehensive scoring rule, a comprehensive score of each sorting field in the multiple sorting fields is obtained; the comprehensive scoring rule includes a basic score of the sorting field and a user popularity score, the basic score is used to characterize the usage frequency of the sorting field, and the user popularity score is obtained according to the sorting history data of the user;
[0007] Based on the comprehensive score of each sorting field in the multiple sorting fields, the multiple sorting fields are sorted to obtain a data sorting result of the custom field.
[0008] According to a second aspect of an embodiment of the present application, a user-defined field sorting device is provided, comprising:
[0009] A sorting editing module, used to obtain multiple sorting fields and sorting rules defined by the user, wherein the sorting rules include one or more of weight sorting rules, combination sorting rules, and conditional sorting rules. The weight sorting rules include the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rules include the weight and sorting order of each sorting field under different combination conditions. The weights of the same sorting field in different combination conditions are the same or different. The conditional sorting rules include the weights of each sorting field and the sorting order of the sorting fields under different specific conditions.
[0010] A scoring calculation module, used to obtain a comprehensive score of each of the multiple sorting fields based on the sorting rule and the comprehensive scoring rule; the comprehensive scoring rule includes a basic score of the sorting field and a user popularity score, the basic score is used to characterize the usage frequency of the sorting field, and the user popularity score is obtained based on the sorting history data of the user;
[0011] The rule sorting module is used to sort the multiple sorting fields based on the comprehensive score of each sorting field in the multiple sorting fields to obtain the data sorting result of the custom field.
[0012] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.
[0013] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, characterized in that computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0014] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, characterized in that it includes a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0015] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0016] By obtaining multiple sorting fields and sorting rules defined by the user, and based on the sorting rules and comprehensive scoring rules, the comprehensive scores of each sorting field in the multiple sorting fields are obtained; based on the comprehensive scores of each sorting field in the multiple sorting fields, the multiple sorting fields are sorted to obtain the data sorting results of the custom field. Users can define sorting fields and sorting rules according to actual needs to meet personalized sorting needs; dynamic sorting logic is implemented by calculating comprehensive scores to ensure that the sorting logic can handle changes in field values and different sorting rules, and improve the accuracy of sorting; thus solving the limitations of traditional sorting methods.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0019] Figure 1 It is a flowchart of a custom field sorting method according to an embodiment of the present application.
[0020] Figure 2 It is a block diagram of a custom field sorting device according to an embodiment of the present application.
[0021] Figure 3 It is a block diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0024] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0025] Figure 1 is a flowchart of a method for sorting custom fields according to an exemplary embodiment. Figure 1 As shown, the custom field sorting method is used in custom field sorting and may include steps S101-S103.
[0026] In step S101, multiple user-defined sorting fields and sorting rules are obtained, and the sorting rules include one or more of weight sorting rules, combination sorting rules, and conditional sorting rules. The weight sorting rule includes the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rule includes the weight and sorting order of each sorting field under different combination conditions. The weight of the same sorting field in different combination conditions is the same or different; the conditional sorting rule includes the weight of each sorting field under different specific conditions and the sorting order of the sorting fields.
[0027] It can be understood that after the user logs in to the system and selects the data source, the user can define the fields to be sorted and the sorting rules according to actual needs.
[0028] As an implementation method, a method for obtaining multiple sorting fields and sorting rules defined by a user; including: obtaining multiple sorting fields and sorting rules defined by a user through a sorting rule editor, the sorting rule editor allows the user to customize the sorting fields by dragging and dropping, define the sorting order of each sorting field by selecting a sorting direction, and define weights, combined sorting conditions and specific conditions by entering text information.
[0029] That is, this embodiment designs a sorting rule editor, which allows the user to construct sorting rules by dragging fields, selecting sorting directions, and the like.
[0030] Exemplarily, the sorting rule editor defines a weight configuration: allowing the user to define a weight for each field. For example, the user selects two sorting fields, "price" and "rating", and can define a weight of 0.6 for the "price" field and a weight of 0.4 for the "rating" field.
[0031] Thus, this embodiment allows users to define complex sorting rules, including weight sorting rules, combined sorting rules, conditional sorting rules, etc. For example, combined sorting conditions (such as using different weights for the same field) or conditional sorting (such as changes in sorting rules under specific conditions).
[0032] Exemplarily, the sorting order includes ascending order and descending order.
[0033] In some embodiments, after obtaining multiple sorting fields and sorting rules defined by the user; including: converting the sorting rules into a JSON data structure and storing it in a database to record the user's sorting history, the user's commonly used sorting configurations can be saved to facilitate the user to quickly apply and adjust next time, thereby improving user experience and operational convenience.
[0034] In some embodiments, after obtaining a plurality of sorting fields and sorting rules defined by a user, the method further includes: verifying the validity of each sorting field and sorting rule in the sorting fields defined by the user.
[0035] Therefore, by validating the input, that is, in actual use, it is necessary to validate the user input to ensure the validity of all fields and sorting rules.
[0036] In some embodiments, before obtaining the plurality of sorting fields and sorting rules defined by the user, it includes: obtaining historical behavior data of the user;
[0037] Based on the user's historical behavior data, obtain user preference data; based on the user preference data, obtain at least one preference field of the user and the usage frequency and sorting order of each preference field; based on the usage frequency of each preference field, calculate the preference score of each preference field; based on the user's at least one preference field and the preference score and sorting order of each preference field, display the sorting result to the user.
[0038] That is, collect user behavior data, such as browsing history, etc. Calculate user preferences based on user behavior data, for example, frequently used ones may be ranked first. Sort by user preference scores and display the sorted data to implement sorting recommendations based on user habits and preferences to improve user experience.
[0039] In some embodiments, the user can select the most frequently used fields or customize the sorting field combination settings according to the system recommendation and submit.
[0040] In step S102, based on the sorting rule and the comprehensive scoring rule, a comprehensive score of each sorting field in the plurality of sorting fields is obtained.
[0041] In some embodiments, the sorting rules include weighted sorting rules, and based on the sorting rules and the comprehensive scoring rules, a comprehensive score of each sorting field in multiple sorting fields is obtained; including: obtaining the current basic score and user popularity score of each sorting field in multiple sorting fields; for each sorting field, calculating the weighted sum of the basic score and the user popularity score of the sorting field, and then calculating the product of the weighted sum and the weight of the sorting field to obtain the comprehensive score of each sorting field in multiple sorting fields.
[0042] In some embodiments, the sorting rules include combined sorting rules, and based on the sorting rules and the comprehensive scoring rules, a comprehensive score of each sorting field in multiple sorting fields is obtained; including: obtaining the current basic score and user popularity score of each sorting field in multiple sorting fields; obtaining the comprehensive score of each sorting field in multiple sorting fields according to the weight of each sorting field under different combination conditions in the combined sorting conditions and the basic score and user popularity score of each sorting field.
[0043] In some embodiments, the sorting rules include conditional sorting rules, and based on the sorting rules and the comprehensive scoring rules, a comprehensive score of each sorting field in multiple sorting fields is obtained; including: obtaining the current basic score and user popularity score of each sorting field in multiple sorting fields; obtaining the current data of the parameters in the specific conditions, and determining the specific conditions that are currently met based on the current data of the parameters in the specific conditions; obtaining the comprehensive score of each sorting field in multiple sorting fields based on the weights of each sorting field corresponding to the currently met specific conditions and the basic scores and user popularity scores of each sorting field.
[0044] It can be understood that different sorting rules correspond to different scoring rules in the comprehensive scoring rule, so as to obtain the comprehensive scores of the sorting fields of different sorting rules.
[0045] The above is a description of a method for obtaining a comprehensive score when a user selects one sorting rule. The following is a description of a method for obtaining a comprehensive score when a user selects multiple sorting rules at the same time.
[0046] In some embodiments, the sorting rules include at least two of weighted sorting rules, combined sorting rules, and conditional sorting rules, and based on the sorting rules and the comprehensive scoring rules, a comprehensive score of each sorting field in multiple sorting fields is obtained; including: based on the sorting rules and the comprehensive scoring rules, a comprehensive score of each sorting field corresponding to each sorting rule in at least two sorting rules is obtained; based on the comprehensive score of each sorting field corresponding to each sorting rule in at least two sorting rules, an average of the comprehensive scores of each sorting field is obtained, and a comprehensive score of each sorting field in multiple sorting fields is obtained.
[0047] That is, for each sorting rule, a comprehensive score of multiple sorting fields is obtained; then, for the type of sorting rule, that is, the number of comprehensive scores of each sorting field obtained, the average is calculated to determine the final comprehensive score of the multiple sorting fields.
[0048] It can be understood that the usage frequency of each field changes in real time with the user's use, so it is necessary to determine the current basic score of each field, and obtain the comprehensive score of the sorting field through the current basic score and weight of each sorting field to implement dynamic sorting logic and ensure that the sorting logic can handle changes in field values and different sorting rules.
[0049] In step S103, based on the comprehensive score of each of the multiple sorting fields, the multiple sorting fields are sorted to obtain a data sorting result of the custom field.
[0050] As an implementation method, based on the comprehensive score of each sorting field in the multiple sorting fields, the sorting of the multiple sorting fields is implemented by applying a database SQL statement to obtain and display the sorting result.
[0051] Preferably, when sorting multiple sort fields, the sorting algorithms used may include classic sorting algorithms: quick sort, randomized benchmark selection, bottom-up merge sort, heap sort, etc., to improve sorting efficiency.
[0052] In some embodiments, multiple sorting fields are sorted to obtain data sorting results of custom fields; including: when data corresponding to a sorting field is missing, multiple sorting fields are sorted based on the default value of the sorting field or the sorting field is skipped to obtain data sorting results of custom fields.
[0053] It can be understood that if some user-defined fields are missing in the data, you need to define how to handle these missing fields. For example, you may need to set default values or skip sorting for these fields.
[0054] After obtaining the data sorting results of the custom fields, users can view the sorting results and export or save the data as needed.
[0055] The custom field sorting method of the embodiment of the present application obtains multiple sorting fields and sorting rules defined by the user, and obtains the comprehensive score of each sorting field in the multiple sorting fields based on the sorting rules and the comprehensive scoring rules; sorts the multiple sorting fields based on the comprehensive score of each sorting field in the multiple sorting fields to obtain the data sorting result of the custom field. Users can define sorting fields and sorting rules according to actual needs to meet personalized sorting needs; dynamic sorting logic is implemented by calculating the comprehensive score to ensure that the sorting logic can handle changes in field values and different sorting rules, thereby improving the accuracy of sorting; thereby solving the limitations of traditional sorting methods and improving user experience and operational flexibility.
[0056] As an implementation of the methods shown in the above figures, the present application embodiment also provides a custom field sorting device, Figure 2 is a block diagram of a device for sorting custom fields according to an exemplary embodiment. Figure 2 The device may include: a sorting and editing module 201, a scoring calculation module 202 and a rule sorting module 203.
[0057] Among them, the sorting editing module 201 is used to obtain multiple sorting fields and sorting rules defined by the user. The sorting rules include one or more of the weight sorting rules, the combination sorting rules, and the conditional sorting rules. The weight sorting rules include the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rules include the weight and sorting order of each sorting field under different combination conditions. The weights of the same sorting field in different combination conditions are the same or different; the conditional sorting rules include the weights of each sorting field and the sorting order of the sorting fields under different specific conditions;
[0058] The scoring calculation module 202 is used to obtain the comprehensive score of each sorting field in the multiple sorting fields based on the sorting rules and the comprehensive scoring rules; the comprehensive scoring rules include the basic score of the sorting field and the user popularity score, the basic score is used to characterize the usage frequency of the sorting field, and the user popularity score is obtained based on the sorting history data of the user;
[0059] The rule sorting module 203 is used to sort the multiple sorting fields based on the comprehensive score of each sorting field in the multiple sorting fields to obtain the data sorting result of the custom field.
[0060] In some embodiments of the present application, the sorting and editing module 201 is specifically used to:
[0061] Get multiple sorting fields and sorting rules defined by the user through the sorting rule editor. The sorting rule editor allows users to customize sorting fields by dragging and dropping, define the sorting order of each sorting field by selecting the sorting direction, and define weights, combined sorting conditions, and specific conditions by entering text information.
[0062] In some embodiments of the present application, the sorting rule includes a weight sorting rule, and the score calculation module 202 is specifically used to:
[0063] Get the current basic score and user popularity score of each sorting field among multiple sorting fields;
[0064] For each sorting field, a weighted sum of the basic score of the sorting field and the user popularity score is calculated, and then the product of the weighted sum and the weight of the sorting field is calculated to obtain a comprehensive score of each sorting field in the multiple sorting fields.
[0065] In some embodiments of the present application, the sorting rule includes a combined sorting rule, and the score calculation module 202 is specifically used to:
[0066] Get the current basic score and user popularity score of each sorting field among multiple sorting fields;
[0067] According to the weight of each sorting field under different combination conditions in the combined sorting condition and the basic score and user popularity score of each sorting field, a comprehensive score of each sorting field in multiple sorting fields is obtained.
[0068] In some embodiments of the present application, the sorting rule includes a conditional sorting rule, and the score calculation module 202 is specifically used to:
[0069] Get the current basic score and user popularity score of each sorting field among multiple sorting fields;
[0070] Obtain current data of the parameters in the specific condition, and determine the specific condition currently satisfied based on the current data of the parameters in the specific condition;
[0071] Based on the weight of each sorting field corresponding to the currently satisfied specific condition, the basic score of each sorting field, and the user popularity score, a comprehensive score of each sorting field in the multiple sorting fields is obtained.
[0072] In some embodiments of the present application, the sorting rule includes at least two of a weight sorting rule, a combination sorting rule, and a conditional sorting rule. The score calculation module 202 is specifically used to:
[0073] Based on the sorting rule and the comprehensive scoring rule, obtaining a comprehensive score of each sorting field corresponding to each sorting rule in at least two sorting rules;
[0074] Based on the comprehensive scores of the sorting fields corresponding to the sorting rules in the at least two sorting rules, the average of the comprehensive scores of the sorting fields is obtained, and the comprehensive score of each sorting field in the multiple sorting fields is obtained.
[0075] In some embodiments of the present application, the sorting and editing module 201 is further used to:
[0076] Convert the sorting rules into JSON data structure and store them in the database.
[0077] In some embodiments of the present application, the apparatus further includes a ranking recommendation module 204, which is used to:
[0078] Obtain user's historical behavior data;
[0079] Obtain user preference data based on user historical behavior data;
[0080] Based on the user preference data, obtaining at least one preference field of the user and the usage frequency and sorting order of each preference field;
[0081] Based on the usage frequency of each preference field, a preference score of each preference field is calculated;
[0082] Based on at least one preference field of the user and the preference score and the sorting order of each preference field, the sorting result is displayed to the user.
[0083] In some embodiments of the present application, the sorting and editing module 201 is further used to:
[0084] Verify the validity of the sort fields and sort rules in the user-defined sort fields.
[0085] In some embodiments of the present application, the rule sorting module 203 is further used to:
[0086] When data corresponding to a sorting field is missing, multiple sorting fields are sorted based on a default value of the sorting field or the sorting field is skipped to obtain a data sorting result of the custom field.
[0087] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0088] The custom field sorting device of the embodiment of the present application obtains multiple sorting fields and sorting rules defined by the user, and obtains the comprehensive score of each sorting field in the multiple sorting fields based on the sorting rules and the comprehensive scoring rules; sorts the multiple sorting fields based on the comprehensive score of each sorting field in the multiple sorting fields to obtain the data sorting result of the custom field. The user can define the sorting fields and sorting rules according to actual needs to meet personalized sorting needs; dynamic sorting logic is realized by calculating the comprehensive score, ensuring that the sorting logic can handle changes in field values and different sorting rules, and improving the accuracy of sorting; thereby solving the limitations of traditional sorting methods.
[0089] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0090] like Figure 3 , is a block diagram of an electronic device for implementing a method for customizing field sorting according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described herein and / or required.
[0091] like Figure 3 As shown, the electronic device includes: one or more processors 301, a memory 302, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 301 is taken as an example.
[0092] The memory 302 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the method for custom field sorting provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for custom field sorting provided in the present application.
[0093] The memory 302 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method for customizing field sorting in the embodiment of the present application (for example, the attached Figure 2 The processor 301 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 302, that is, the method of custom field sorting in the above method embodiment is implemented.
[0094] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of an electronic device sorted according to a custom field, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the electronic device sorted by the custom field via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The electronic device of the method for customizing field sorting may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0096] The input device 303 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for custom field sorting, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 304 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0097] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0100] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0101] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0102] In an exemplary embodiment, a computer program product is also provided. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform the above method.
[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0104] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A custom field sorting method, characterized in that: include: Acquire multiple sorting fields and sorting rules defined by the user, wherein the sorting rules include one or more of weight sorting rules, combination sorting rules, and conditional sorting rules. The weight sorting rule includes the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rule includes the weight and sorting order of each sorting field under different combination conditions. The weights of the same sorting field in different combination conditions are the same or different. The conditional sorting rule includes the weights of each sorting field and the sorting order of the sorting fields under different specific conditions. Based on the sorting rule and the comprehensive scoring rule, a comprehensive score of each sorting field in the multiple sorting fields is obtained; the comprehensive scoring rule includes a basic score of the sorting field and a user popularity score, the basic score is used to characterize the usage frequency of the sorting field, and the user popularity score is obtained according to the sorting history data of the user; Based on the comprehensive score of each sorting field in the multiple sorting fields, the multiple sorting fields are sorted to obtain a data sorting result of the custom field.
2. The method according to claim 1, characterized in that The method of obtaining multiple sorting fields and sorting rules defined by the user includes: Obtain multiple sorting fields and sorting rules defined by the user through a sorting rule editor, wherein the sorting rule editor allows the user to customize the sorting fields by dragging and dropping, define the sorting order of each sorting field by selecting a sorting direction, and define the weight, the combined sorting condition and the specific condition by inputting text information.
3. The method according to claim 1, characterized in that The sorting rule includes a weight sorting rule, and obtaining a comprehensive score of each sorting field in the multiple sorting fields based on the sorting rule and the comprehensive scoring rule includes: Obtaining a current basic score and a user popularity score for each of the multiple sorting fields; For each sorting field, a weighted sum of a basic score of the sorting field and a user popularity score is calculated, and then the product of the weighted sum and the weight of the sorting field is calculated to obtain a comprehensive score for each sorting field in the multiple sorting fields.
4. The method according to claim 1, characterized in that: The sorting rule includes a combined sorting rule, and obtaining a comprehensive score of each sorting field in the multiple sorting fields based on the sorting rule and the comprehensive scoring rule includes: Obtaining a current basic score and a user popularity score for each of the multiple sorting fields; According to the weight of each sorting field under different combination conditions in the combined sorting condition and the basic score and user popularity score of each sorting field, a comprehensive score of each sorting field in the multiple sorting fields is obtained.
5. The method according to claim 1, characterized in that The sorting rule includes a conditional sorting rule, and obtaining a comprehensive score of each sorting field in the multiple sorting fields based on the sorting rule and the comprehensive scoring rule includes: Obtaining a current basic score and a user popularity score for each of the multiple sorting fields; Acquire current data of the parameters in the specific condition, and determine the specific condition currently satisfied based on the current data of the parameters in the specific condition; Based on the weight of each sorting field corresponding to the currently satisfied specific condition and the basic score and user popularity score of each sorting field, a comprehensive score of each sorting field in the multiple sorting fields is obtained.
6. The method according to claim 1, characterized in that The sorting rules include at least two of weight sorting rules, combination sorting rules, and conditional sorting rules, and obtaining a comprehensive score of each sorting field in the multiple sorting fields based on the sorting rules and the comprehensive scoring rule; including: Based on the sorting rule and the comprehensive scoring rule, obtaining a comprehensive score of each sorting field corresponding to each sorting rule in the at least two sorting rules; Based on the comprehensive scores of the sorting fields corresponding to the sorting rules in the at least two sorting rules, an average of the comprehensive scores of the sorting fields is obtained, and a comprehensive score of each sorting field in the multiple sorting fields is obtained.
7. The method according to claim 1, characterized in that After obtaining multiple sorting fields and sorting rules defined by the user; including: The sorting rules are converted into a JSON data structure and stored in a database.
8. The method according to claim 1, characterized in that The method further comprises: Obtain user's historical behavior data; Based on the historical behavior data of the user, obtaining user preference data; Based on the user preference data, obtaining at least one preference field of the user and a usage frequency and a sorting order of each preference field; Calculating a preference score for each preference field based on the usage frequency of each preference field; Based on the at least one preference field of the user and the preference score and the sorting order of each preference field, a sorting result is displayed to the user.
9. The method according to claim 1, characterized in that: After obtaining the multiple sorting fields and sorting rules defined by the user, the method includes: Verify the validity of each sort field and sort rule in the user-defined sort field.
10. The method according to claim 1, characterized in that The sorting process of the plurality of sorting fields to obtain the data sorting result of the custom field comprises: When data corresponding to the sorting field is missing, the multiple sorting fields are sorted based on a default value of the sorting field or the sorting field is skipped to obtain a data sorting result of the custom field.
11. A custom field sorting device, characterized in that: include: A sorting editing module, used to obtain multiple sorting fields and sorting rules defined by the user, wherein the sorting rules include one or more of weight sorting rules, combination sorting rules, and conditional sorting rules. The weight sorting rules include the weight and sorting order of each sorting field in the multiple sorting fields. The combination sorting rules include the weight and sorting order of each sorting field under different combination conditions. The weights of the same sorting field in different combination conditions are the same or different. The conditional sorting rules include the weights of each sorting field and the sorting order of the sorting fields under different specific conditions. A scoring calculation module, used to obtain a comprehensive score of each of the multiple sorting fields based on the sorting rule and the comprehensive scoring rule; the comprehensive scoring rule includes a basic score of the sorting field and a user popularity score, the basic score is used to characterize the usage frequency of the sorting field, and the user popularity score is obtained based on the sorting history data of the user; The rule sorting module is used to sort the multiple sorting fields based on the comprehensive score of each sorting field in the multiple sorting fields to obtain the data sorting result of the custom field.
12. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.
14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.